示例#1
0
 public void Init(HttpApplication app)
 {
     app.BeginRequest += (sender, args) => {
         var httpApp = (sender as HttpApplication);
         if (_rack == null)
         {
             lock (this) {
                 if (_rack == null)
                 {
                     _rack = new RackDispatcher(httpApp.Context);
                 }
             }
         }
         _rack.ProcessRequest(httpApp.Context);
         httpApp.CompleteRequest();
     };
 }
示例#2
0
 public void ProcessRequest(HttpContext context)
 {
     _rack.ProcessRequest(context);
 }