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