Exemplo n.º 1
0
 public void Init(HttpApplication context)
 {
     context.PostResolveRequestCache += (sender, e) => {
         // Remap to SignalReceiverHandler
         if (context.Request.AppRelativeCurrentExecutionFilePath.StartsWith("~/" + SignalReceiverHandler.HandlerName)) {
             var handler = new SignalReceiverHandler();
             context.Context.RemapHandler(handler);
         }
     };
 }
Exemplo n.º 2
0
 public void Init(HttpApplication context)
 {
     context.PostResolveRequestCache += (sender, e) =>
     {
         // Remap to SignalReceiverHandler
         if (context.Request.AppRelativeCurrentExecutionFilePath.StartsWith("~/" + SignalReceiverHandler.HandlerName))
         {
             var handler = new SignalReceiverHandler();
             context.Context.RemapHandler(handler);
         }
     };
 }