83 references to Context
System.ServiceModel.Activation (10)
System\ServiceModel\Activation\HostedHttpContext.cs (4)
90
this.result.Application.
Context
.AcceptWebSocketRequest(PostAcceptWebSocket, new AspNetWebSocketOptions() { SubProtocol = protocol });
329
foreach (string webHeaderKey in this.hostedHttpContext.result.Application.
Context
.Request.Headers.Keys)
331
message.AddHeader(webHeaderKey, this.hostedHttpContext.result.Application.
Context
.Request.Headers[webHeaderKey]);
857
IServiceProvider provider = (IServiceProvider)result.Application.
Context
;
System\ServiceModel\Activation\HostedHttpRequestAsyncResult.cs (1)
107
this.isWebSocketRequest = HttpRuntime.UsingIntegratedPipeline && AspNetEnvironment.Current.IsWebSocketModuleLoaded && this.context.
Context
.IsWebSocketRequest;
System\ServiceModel\Activation\HostedHttpTransportManager.cs (2)
84
IServiceProvider provider = (IServiceProvider)result.Application.
Context
;
112
IServiceProvider provider = (IServiceProvider)result.Application.
Context
;
System\ServiceModel\Activation\HttpModule.cs (1)
79
application.
Context
.RemapHandler(new HttpHandler());
System\ServiceModel\Activation\ServiceHttpModule.cs (2)
100
application.
Context
, application.Request.RequestType,
102
application.
Context
.RemapHandler(cbaHandler);
System.Web (65)
HttpApplication.cs (31)
523
module.ReleaseSessionState(
Context
);
530
return module.ReleaseSessionStateAsync(
Context
);
590
isReentry =
Context
.NotificationContext.IsReEntry;
591
eventCount = CurrentModuleContainer.GetEventCount(
Context
.CurrentNotification,
Context
.IsPostNotification) - 1;
603
var nc =
Context
.NotificationContext;
609
if (object.ReferenceEquals(nc,
Context
.NotificationContext)) {
3078
EtwTrace.Trace(EtwTraceType.ETW_TYPE_PIPELINE_ENTER, _application.
Context
.WorkerRequest, targetTypeStr);
3081
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Module)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_PIPELINE_LEAVE, _application.
Context
.WorkerRequest, targetTypeStr);
3133
HttpContext context = _application.
Context
;
3198
EtwTrace.Trace(EtwTraceType.ETW_TYPE_PIPELINE_ENTER, _application.
Context
.WorkerRequest, _targetTypeStr);
3201
HttpContext context = _application.
Context
;
3232
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Module)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_PIPELINE_LEAVE, _application.
Context
.WorkerRequest, _targetTypeStr);
3254
_application.
Context
.ValidatePath();
3275
_application.
Context
.Request.ValidateInputIfRequiredByConfig();
3299
HttpContext context = _application.
Context
;
3383
HttpContext context = _application.
Context
;
3433
HttpContext context = _application.
Context
;
3526
HttpContext context = _application.
Context
;
3633
get { return (_application.
Context
.Handler is IHttpAsyncHandler) ? false : true; }
3646
HttpContext context = _application.
Context
;
3693
_application.
Context
.Response.FilterOutput();
3697
if (HttpRuntime.UseIntegratedPipeline && (_application.
Context
.CurrentNotification == RequestNotification.UpdateRequestCache)) {
3698
_application.
Context
.DisableNotifications(RequestNotification.LogRequest, 0 /*postNotifications*/);
3729
if (_application.
Context
.IsSendResponseHeaders && _isHeaders
3738
EtwTrace.Trace(EtwTraceType.ETW_TYPE_PIPELINE_ENTER, _application.
Context
.WorkerRequest, targetTypeStr);
3741
if (EtwTrace.IsTraceEnabled(EtwTraceLevel.Verbose, EtwTraceFlags.Module)) EtwTrace.Trace(EtwTraceType.ETW_TYPE_PIPELINE_LEAVE, _application.
Context
.WorkerRequest, targetTypeStr);
3764
HttpContext context = _application.
Context
;
3792
HttpContext context = _application.
Context
;
3875
HttpContext context = app.
Context
;
4071
HttpContext context = _application.
Context
;
ImplicitAsyncPreloadModule.cs (1)
42
HttpContext context = _app.
Context
;
OutputCacheModule.cs (2)
563
context = app.
Context
;
1027
context = app.
Context
;
Profile\ProfileModule.cs (2)
124
HttpContext context = ((HttpApplication)source).
Context
;
136
HttpContext context = app.
Context
;
Routing\UrlRoutingModule.cs (3)
34
if (application.
Context
.Items[_contextKey] != null) {
37
application.
Context
.Items[_contextKey] = _contextKey;
47
HttpContextBase context = new HttpContextWrapper(app.
Context
);
Security\AnonymousIdentificationModule.cs (1)
149
context = app.
Context
;
Security\BackStopAuthenticationModule.cs (1)
102
context = app.
Context
;
Security\FileAuthorizationModule.cs (1)
131
context = app.
Context
;
Security\FormsAuthenticationModule.cs (2)
194
context = app.
Context
;
240
context = app.
Context
;
Security\PassportAuthenticationModule.cs (2)
129
context = app.
Context
;
168
context = app.
Context
;
Security\RoleManagerModule.cs (3)
84
((HttpApplication)source).
Context
.DisableNotifications(RequestNotification.EndRequest, 0);
90
HttpContext context = app.
Context
;
160
context = app.
Context
;
Security\UrlAuthorizationModule.cs (1)
131
context = app.
Context
;
Security\WindowsAuthenticationModule.cs (1)
120
HttpContext context = app.
Context
;;
State\SessionStateModule.cs (3)
615
_rqContext = ((HttpApplication)source).
Context
;
1271
context = app.
Context
;
1433
context = app.
Context
;
UI\LegacyPageAsyncTask.cs (2)
164
using (app.
Context
.SyncContext.AcquireThreadLock()) {
203
using (app.
Context
.SyncContext.AcquireThreadLock()) {
UI\LegacyPageAsyncTaskManager.cs (5)
164
_app.
Context
.SyncContext.DisassociateFromCurrentThread();
165
_app.
Context
.SyncContext.AssociateWithCurrentThread();
210
using (_app.
Context
.SyncContext.AcquireThreadLock()) {
295
_app.
Context
.SyncContext.DisassociateFromCurrentThread();
303
_app.
Context
.SyncContext.AssociateWithCurrentThread();
UrlMappingsModule.cs (1)
30
UrlMappingRewritePath(app.
Context
);
Util\AppVerifier.cs (3)
199
HttpContext context = httpApplication.
Context
;
278
HttpContext assignedContextUponCallingBeginHandler = httpApplication.
Context
; // used to determine whether the underlying request disappeared
339
assert(assignedContextUponCallingBeginHandler == httpApplication.
Context
, AppVerifierErrorCode.AsyncCallbackCalledAfterHttpApplicationReassigned);
System.Web.Extensions (7)
Handlers\ScriptModule.cs (7)
71
if (app != null && ShouldSkipAuthorization(app.
Context
)) {
72
app.
Context
.SetSkipAuthorizationNoDemand(true, false);
82
HttpContext context = app.
Context
;
108
if (app.
Context
.Items[_contextKey] != null) {
111
app.
Context
.Items[_contextKey] = _contextKey;
166
HttpRequest request = app.
Context
.Request;
168
if (app.
Context
.Handler is Page && RestHandlerFactory.IsRestMethodCall(request)) {
System.Web.Mobile (1)
Mobile\ErrorHandlerModule.cs (1)
100
context = application.
Context
;