Example #1
0
 public void ReleaseHandler(IHttpHandler /*!*/ handler)
 {
     if (_Handler != null && !_Handler.IsReusable)
     {
         _Handler = null;
     }
 }
Example #2
0
 /// <summary>
 /// Sets up the environment. This is only run when the server starts up, not
 /// for each request, so as much as possible should be done here. Returns a
 /// HttpHandler capable of serving Rack requests.
 /// </summary>
 public IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) {
     if (_Handler == null) {
         var rack = new RackDispatcher(context);
         if (rack._failed)
             return null;
         _Handler = new AspNetHandler(rack);
     }
     return _Handler;
 }
Example #3
0
 /// <summary>
 /// Sets up the environment. This is only run when the server starts up, not
 /// for each request, so as much as possible should be done here. Returns a
 /// HttpHandler capable of serving Rack requests.
 /// </summary>
 public IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated)
 {
     if (_Handler == null)
     {
         var rack = new RackDispatcher(context);
         if (rack._failed)
         {
             return(null);
         }
         _Handler = new AspNetHandler(rack);
     }
     return(_Handler);
 }
Example #4
0
 public void ReleaseHandler(IHttpHandler /*!*/ handler)
 {
     handler  = null;
     _Handler = null;
 }
Example #5
0
 public void ReleaseHandler(IHttpHandler/*!*/ handler)
 {
     if(_Handler != null && !_Handler.IsReusable) {
         _Handler = null;
     }
 }
Example #6
0
 public void ReleaseHandler(IHttpHandler/*!*/ handler) {
     handler = null;
     _Handler = null;
 }