201 references to RequestNotification
System.Web (201)
Abstractions\HttpContextBase.cs (1)
87public virtual RequestNotification CurrentNotification {
Abstractions\HttpContextWrapper.cs (1)
93public override RequestNotification CurrentNotification {
Hosting\IIS7WorkerRequest.cs (2)
1645RequestNotification notifications, 1646RequestNotification postNotifications) {
Hosting\IISUnsafeMethods.cs (4)
141RequestNotification requestNotifications, 143RequestNotification postRequestNotifications, 341RequestNotification notifications, 343RequestNotification postNotifications);
Hosting\IPipelineRuntime.cs (5)
351RequestNotification.BeginRequest, 369RequestNotification.ExecuteRequestHandler /*requestNotifications*/, 554&& RequestNotification.SendResponse != (RequestNotification)currentNotification) { 579verifierCheck = AppVerifier.GetRequestNotificationStatusCheckDelegate(context, (RequestNotification)currentNotification, isPostNotification);
HttpApplication.cs (143)
153private Dictionary<string, RequestNotification> _pipelineEventMasks; 169private RequestNotification _appRequestNotifications; 170private RequestNotification _appPostNotifications; 685internal void AddSyncEventHookup(object key, Delegate handler, RequestNotification notification) { 712private void AddSyncEventHookup(object key, Delegate handler, RequestNotification notification, bool isPostNotification) { 735internal void RemoveSyncEventHookup(object key, Delegate handler, RequestNotification notification) { 739internal void RemoveSyncEventHookup(object key, Delegate handler, RequestNotification notification, bool isPostNotification) { 772container.AddEvent(RequestNotification.SendResponse, false /*isPostNotification*/, step); 786container.RemoveEvent(RequestNotification.SendResponse, false /*isPostNotification*/, handler); 798add { AddSyncEventHookup(EventBeginRequest, value, RequestNotification.BeginRequest); } 799remove { RemoveSyncEventHookup(EventBeginRequest, value, RequestNotification.BeginRequest); } 805add { AddSyncEventHookup(EventAuthenticateRequest, value, RequestNotification.AuthenticateRequest); } 806remove { RemoveSyncEventHookup(EventAuthenticateRequest, value, RequestNotification.AuthenticateRequest); } 811add { AddSyncEventHookup(EventDefaultAuthentication, value, RequestNotification.AuthenticateRequest); } 812remove { RemoveSyncEventHookup(EventDefaultAuthentication, value, RequestNotification.AuthenticateRequest); } 818add { AddSyncEventHookup(EventPostAuthenticateRequest, value, RequestNotification.AuthenticateRequest, true); } 819remove { RemoveSyncEventHookup(EventPostAuthenticateRequest, value, RequestNotification.AuthenticateRequest, true); } 825add { AddSyncEventHookup(EventAuthorizeRequest, value, RequestNotification.AuthorizeRequest); } 826remove { RemoveSyncEventHookup(EventAuthorizeRequest, value, RequestNotification.AuthorizeRequest); } 832add { AddSyncEventHookup(EventPostAuthorizeRequest, value, RequestNotification.AuthorizeRequest, true); } 833remove { RemoveSyncEventHookup(EventPostAuthorizeRequest, value, RequestNotification.AuthorizeRequest, true); } 839add { AddSyncEventHookup(EventResolveRequestCache, value, RequestNotification.ResolveRequestCache); } 840remove { RemoveSyncEventHookup(EventResolveRequestCache, value, RequestNotification.ResolveRequestCache); } 846add { AddSyncEventHookup(EventPostResolveRequestCache, value, RequestNotification.ResolveRequestCache, true); } 847remove { RemoveSyncEventHookup(EventPostResolveRequestCache, value, RequestNotification.ResolveRequestCache, true); } 855AddSyncEventHookup(EventMapRequestHandler, value, RequestNotification.MapRequestHandler); 861RemoveSyncEventHookup(EventMapRequestHandler, value, RequestNotification.MapRequestHandler); 867add { AddSyncEventHookup(EventPostMapRequestHandler, value, RequestNotification.MapRequestHandler, true); } 868remove { RemoveSyncEventHookup(EventPostMapRequestHandler, value, RequestNotification.MapRequestHandler); } 874add { AddSyncEventHookup(EventAcquireRequestState, value, RequestNotification.AcquireRequestState); } 875remove { RemoveSyncEventHookup(EventAcquireRequestState, value, RequestNotification.AcquireRequestState); } 881add { AddSyncEventHookup(EventPostAcquireRequestState, value, RequestNotification.AcquireRequestState, true); } 882remove { RemoveSyncEventHookup(EventPostAcquireRequestState, value, RequestNotification.AcquireRequestState, true); } 888add { AddSyncEventHookup(EventPreRequestHandlerExecute, value, RequestNotification.PreExecuteRequestHandler); } 889remove { RemoveSyncEventHookup(EventPreRequestHandlerExecute, value, RequestNotification.PreExecuteRequestHandler); } 894add { AddSyncEventHookup(EventPostRequestHandlerExecute, value, RequestNotification.ExecuteRequestHandler, true); } 895remove { RemoveSyncEventHookup(EventPostRequestHandlerExecute, value, RequestNotification.ExecuteRequestHandler, true); } 901add { AddSyncEventHookup(EventReleaseRequestState, value, RequestNotification.ReleaseRequestState ); } 902remove { RemoveSyncEventHookup(EventReleaseRequestState, value, RequestNotification.ReleaseRequestState); } 908add { AddSyncEventHookup(EventPostReleaseRequestState, value, RequestNotification.ReleaseRequestState, true); } 909remove { RemoveSyncEventHookup(EventPostReleaseRequestState, value, RequestNotification.ReleaseRequestState, true); } 915add { AddSyncEventHookup(EventUpdateRequestCache, value, RequestNotification.UpdateRequestCache); } 916remove { RemoveSyncEventHookup(EventUpdateRequestCache, value, RequestNotification.UpdateRequestCache); } 922add { AddSyncEventHookup(EventPostUpdateRequestCache, value, RequestNotification.UpdateRequestCache, true); } 923remove { RemoveSyncEventHookup(EventPostUpdateRequestCache, value, RequestNotification.UpdateRequestCache, true); } 931AddSyncEventHookup(EventLogRequest, value, RequestNotification.LogRequest); 937RemoveSyncEventHookup(EventLogRequest, value, RequestNotification.LogRequest); 946AddSyncEventHookup(EventPostLogRequest, value, RequestNotification.LogRequest, true); 952RemoveSyncEventHookup(EventPostLogRequest, value, RequestNotification.LogRequest, true); 958add { AddSyncEventHookup(EventEndRequest, value, RequestNotification.EndRequest); } 959remove { RemoveSyncEventHookup(EventEndRequest, value, RequestNotification.EndRequest); } 1003AsyncEvents.AddHandler(EventBeginRequest, beginHandler, endHandler, state, RequestNotification.BeginRequest, false, this); 1012RequestNotification.AuthenticateRequest, false, this); 1021RequestNotification.AuthenticateRequest, true, this); 1030RequestNotification.AuthorizeRequest, false, this); 1039RequestNotification.AuthorizeRequest, true, this); 1048RequestNotification.ResolveRequestCache, false, this); 1057RequestNotification.ResolveRequestCache, true, this); 1072RequestNotification.MapRequestHandler, false, this); 1081RequestNotification.MapRequestHandler, true, this); 1090RequestNotification.AcquireRequestState, false, this); 1099RequestNotification.AcquireRequestState, true, this); 1108RequestNotification.PreExecuteRequestHandler, false, this); 1117RequestNotification.ExecuteRequestHandler, true, this); 1126RequestNotification.ReleaseRequestState, false, this); 1135RequestNotification.ReleaseRequestState, true, this); 1144RequestNotification.UpdateRequestCache , false, this); 1153RequestNotification.UpdateRequestCache , true, this); 1168RequestNotification.LogRequest, false, this); 1183RequestNotification.LogRequest, true, this); 1192RequestNotification.EndRequest, false, this); 1839private void BuildEventMaskDictionary(Dictionary<string, RequestNotification> eventMask) { 1840eventMask["BeginRequest"] = RequestNotification.BeginRequest; 1841eventMask["AuthenticateRequest"] = RequestNotification.AuthenticateRequest; 1842eventMask["PostAuthenticateRequest"] = RequestNotification.AuthenticateRequest; 1843eventMask["AuthorizeRequest"] = RequestNotification.AuthorizeRequest; 1844eventMask["PostAuthorizeRequest"] = RequestNotification.AuthorizeRequest; 1845eventMask["ResolveRequestCache"] = RequestNotification.ResolveRequestCache; 1846eventMask["PostResolveRequestCache"] = RequestNotification.ResolveRequestCache; 1847eventMask["MapRequestHandler"] = RequestNotification.MapRequestHandler; 1848eventMask["PostMapRequestHandler"] = RequestNotification.MapRequestHandler; 1849eventMask["AcquireRequestState"] = RequestNotification.AcquireRequestState; 1850eventMask["PostAcquireRequestState"] = RequestNotification.AcquireRequestState; 1851eventMask["PreRequestHandlerExecute"] = RequestNotification.PreExecuteRequestHandler; 1852eventMask["PostRequestHandlerExecute"] = RequestNotification.ExecuteRequestHandler; 1853eventMask["ReleaseRequestState"] = RequestNotification.ReleaseRequestState; 1854eventMask["PostReleaseRequestState"] = RequestNotification.ReleaseRequestState; 1855eventMask["UpdateRequestCache"] = RequestNotification.UpdateRequestCache; 1856eventMask["PostUpdateRequestCache"] = RequestNotification.UpdateRequestCache; 1857eventMask["LogRequest"] = RequestNotification.LogRequest; 1858eventMask["PostLogRequest"] = RequestNotification.LogRequest; 1859eventMask["EndRequest"] = RequestNotification.EndRequest; 1860eventMask["PreSendRequestHeaders"] = RequestNotification.SendResponse; 1861eventMask["PreSendRequestContent"] = RequestNotification.SendResponse; 1868Dictionary<string, RequestNotification> dict = new Dictionary<string, RequestNotification>(); 1978RequestNotification requestNotifications, 1979RequestNotification postRequestNotifications, 2397RequestNotification requestNotifications; 2398RequestNotification postRequestNotifications; 2403RequestNotification.UpdateRequestCache| RequestNotification.LogRequest /*requestNotifications*/, 2488RequestNotification.ExecuteRequestHandler | RequestNotification.MapRequestHandler /*requestNotifications*/, 2489RequestNotification.EndRequest /*postRequestNotifications*/, 2495private void ProcessEventSubscriptions(out RequestNotification requestNotifications, 2496out RequestNotification postRequestNotifications) { 2502requestNotifications |= RequestNotification.BeginRequest; 2507requestNotifications |= RequestNotification.AuthenticateRequest; 2511postRequestNotifications |= RequestNotification.AuthenticateRequest; 2516requestNotifications |= RequestNotification.AuthorizeRequest; 2519postRequestNotifications |= RequestNotification.AuthorizeRequest; 2524requestNotifications |= RequestNotification.ResolveRequestCache; 2527postRequestNotifications |= RequestNotification.ResolveRequestCache; 2532requestNotifications |= RequestNotification.MapRequestHandler; 2535postRequestNotifications |= RequestNotification.MapRequestHandler; 2540requestNotifications |= RequestNotification.AcquireRequestState; 2543postRequestNotifications |= RequestNotification.AcquireRequestState; 2548requestNotifications |= RequestNotification.PreExecuteRequestHandler; 2553postRequestNotifications |= RequestNotification.ExecuteRequestHandler; 2558requestNotifications |= RequestNotification.ReleaseRequestState; 2561postRequestNotifications |= RequestNotification.ReleaseRequestState; 2566requestNotifications |= RequestNotification.UpdateRequestCache; 2569postRequestNotifications |= RequestNotification.UpdateRequestCache; 2574requestNotifications |= RequestNotification.LogRequest; 2577postRequestNotifications |= RequestNotification.LogRequest; 2582requestNotifications |= RequestNotification.EndRequest; 2587requestNotifications |= RequestNotification.SendResponse; 2592requestNotifications |= RequestNotification.SendResponse; 2816RequestNotification requestNotification, 2997RequestNotification requestNotification, 3520wr.DisableNotifications(notifications: 0, postNotifications: RequestNotification.EndRequest); 3697if (HttpRuntime.UseIntegratedPipeline && (_application.Context.CurrentNotification == RequestNotification.UpdateRequestCache)) { 3698_application.Context.DisableNotifications(RequestNotification.LogRequest, 0 /*postNotifications*/); 4016RequestNotification.MapRequestHandler, 4022RequestNotification.ExecuteRequestHandler, 4030RequestNotification.ExecuteRequestHandler, 4038RequestNotification.EndRequest, 4047RequestNotification.UpdateRequestCache, 4053RequestNotification.LogRequest, 4171&& context.CurrentNotification != RequestNotification.LogRequest 4172&& context.CurrentNotification != RequestNotification.EndRequest; 4204context.CurrentNotification = (RequestNotification)currentNotification;
HttpContext.cs (11)
188if (CurrentNotification <= RequestNotification.BeginRequest) { 329if (CurrentNotification > RequestNotification.ExecuteRequestHandler) { 882if (_notificationContext.CurrentNotification >= RequestNotification.MapRequestHandler) { 1260&& _notificationContext.CurrentNotification == RequestNotification.AuthenticateRequest) { 1288if (_notificationContext != null && _notificationContext.CurrentNotification >= RequestNotification.AcquireRequestState) { 1970public RequestNotification CurrentNotification { 2038return (((_notificationContext.CurrentNotification == RequestNotification.AuthenticateRequest && _notificationContext.IsPostNotification) 2039|| _notificationContext.CurrentNotification > RequestNotification.AuthenticateRequest) 2040&& _notificationContext.CurrentNotification != RequestNotification.SendResponse); 2096internal void DisableNotifications(RequestNotification notifications, RequestNotification postNotifications) {
HttpRequest.cs (4)
2537((_context.NotificationContext.CurrentNotification == RequestNotification.AuthenticateRequest && !_context.NotificationContext.IsPostNotification) 2538|| (_context.NotificationContext.CurrentNotification < RequestNotification.AuthenticateRequest))) { 2600(_context.NotificationContext.CurrentNotification == RequestNotification.LogRequest || 2601_context.NotificationContext.CurrentNotification == RequestNotification.EndRequest)) {
HttpRuntime.cs (3)
1447context.CurrentNotification = (RequestNotification) currentNotification; 1542&& (context.CurrentNotification == RequestNotification.LogRequest 1543|| context.CurrentNotification == RequestNotification.EndRequest)) {
NotificationContext.cs (1)
15internal RequestNotification CurrentNotification;
PipelineModuleStepContainer.cs (19)
57private List<HttpApplication.IExecutionStep> GetStepArray(RequestNotification notification, bool isPostEvent) { 87internal int GetEventCount(RequestNotification notification, bool isPostEvent) { 96internal HttpApplication.IExecutionStep GetNextEvent(RequestNotification notification, bool isPostEvent, int eventIndex) { 105internal void RemoveEvent(RequestNotification notification, bool isPostEvent, Delegate handler) { 149internal void AddEvent(RequestNotification notification, bool isPostEvent, HttpApplication.IExecutionStep step) { 196private static int EventToIndex(RequestNotification notification) { 201case RequestNotification.BeginRequest: 205case RequestNotification.AuthenticateRequest: 209case RequestNotification.AuthorizeRequest: 213case RequestNotification.ResolveRequestCache: 217case RequestNotification.MapRequestHandler: 221case RequestNotification.AcquireRequestState: 225case RequestNotification.PreExecuteRequestHandler: 229case RequestNotification.ExecuteRequestHandler: 233case RequestNotification.ReleaseRequestState: 237case RequestNotification.UpdateRequestCache: 241case RequestNotification.LogRequest: 245case RequestNotification.EndRequest: 249case RequestNotification.SendResponse :
Security\RoleManagerModule.cs (2)
84((HttpApplication)source).Context.DisableNotifications(RequestNotification.EndRequest, 0); 134context.DisableNotifications(RequestNotification.EndRequest, 0);
State\SessionStateModule.cs (2)
1409&& (context.NotificationContext.CurrentNotification == RequestNotification.ReleaseRequestState) 1411context.DisableNotifications(RequestNotification.EndRequest, 0 /*postNotifications*/);
Util\AppVerifier.cs (3)
193RequestNotification? currentNotification = null; 538internal static Action<RequestNotificationStatus> GetRequestNotificationStatusCheckDelegate(HttpContext context, RequestNotification currentNotification, bool isPostNotification) { 550internal static Action<RequestNotificationStatus> GetRequestNotificationStatusCheckDelegateImpl(HttpContext context, RequestNotification currentNotification, bool isPostNotification, Action<AppVerifierException> errorHandler) {