1 write to _context
System.Web (1)
httpserverutility.cs (1)
48
_context
= context;
73 references to _context
System.Web (73)
httpserverutility.cs (73)
213
if (
_context
== null)
217
bool unhideRequest =
_context
.HideRequestResponse;
221
_context
.HideRequestResponse = false;
223
realPath =
_context
.Request.MapPath(path);
227
_context
.HideRequestResponse = true;
238
if (
_context
!= null)
239
return
_context
.Error;
251
if (
_context
!= null)
252
_context
.ClearError();
310
if (
_context
== null)
317
HttpRequest request =
_context
.Request;
318
HttpResponse response =
_context
.Response;
359
using (new DisposableHttpContextWrapper(
_context
)) {
364
_context
.ServerExecuteDepth++;
366
if (
_context
.WorkerRequest is IIS7WorkerRequest) {
367
handler =
_context
.ApplicationInstance.MapIntegratedHttpHandler(
368
_context
,
376
handler =
_context
.ApplicationInstance.MapHttpHandler(
377
_context
,
385
_context
.ServerExecuteDepth--;
408
if (
_context
== null)
415
HttpRequest request =
_context
.Request;
431
HttpRequest request =
_context
.Request;
432
HttpResponse response =
_context
.Response;
433
HttpApplication app =
_context
.ApplicationInstance;
445
_context
.PushTraceContext();
448
_context
.SetCurrentHandler(handler);
451
bool originalSyncContextWasEnabled =
_context
.SyncContext.Enabled;
452
_context
.SyncContext.Disable();
457
_context
.ServerExecuteDepth++;
483
targetPage.SetPreviousPage(
_context
.PreviousHandler as Page);
486
Page sourcePage =
_context
.Handler as Page;
497
savedSyncContext =
_context
.InstallNewAspNetSynchronizationContext();
524
bool isCancellable =
_context
.IsInCancellablePeriod;
526
_context
.EndCancellablePeriod();
534
IAsyncResult ar = asyncHandler.BeginProcessRequest(
_context
, null, null);
544
_context
.SyncContext.DisassociateFromCurrentThread();
560
_context
.SyncContext.AssociateWithCurrentThread();
580
using (
_context
.SyncContext.AcquireThreadLock()) {
582
ar = asyncHandler.BeginProcessRequest(
_context
,
596
using (
_context
.SyncContext.AcquireThreadLock()) {
601
if (blockedThread && !
_context
.SyncContext.AllowAsyncDuringSyncStages) {
613
_context
.BeginCancellablePeriod();
619
using (new DisposableHttpContextWrapper(
_context
)) {
621
handler.ProcessRequest(
_context
);
630
_context
.ServerExecuteDepth--;
633
_context
.RestoreCurrentHandler();
649
_context
.RestoreSavedAspNetSynchronizationContext(savedSyncContext);
653
_context
.SyncContext.Enable();
657
_context
.PopTraceContext();
686
Page page =
_context
.Handler as Page;
697
_context
.Response.End();
711
bool savedPreventPostback =
_context
.PreventPostback;
712
_context
.PreventPostback = true;
716
_context
.PreventPostback = savedPreventPostback;
730
_context
.Response.End();
754
if (
_context
== null) {
762
IIS7WorkerRequest wr =
_context
.WorkerRequest as IIS7WorkerRequest;
763
HttpRequest request =
_context
.Request;
764
HttpResponse response =
_context
.Response;
798
_context
.ApplicationInstance.EnsureReleaseState();
802
_context
.ApplicationInstance.CompleteRequest();
806
Page topPage =
_context
.Handler as Page;
906
if (
_context
!= null) {
907
return Convert.ToInt32(
_context
.Timeout.TotalSeconds);
916
if (
_context
== null)
920
_context
.Timeout = new TimeSpan(0, 0, value);
985
Encoding e = (
_context
!= null) ?
_context
.Response.ContentEncoding : Encoding.UTF8;
1019
Encoding e = (
_context
!= null) ?
_context
.Request.ContentEncoding : Encoding.UTF8;
1054
if (
_context
!= null) {
1055
_context
.EnsureHasNotTransitionedToWebSocket();