public void ReleaseHandler(IHttpHandler /*!*/ handler)
 {
     if (_Handler != null && !_Handler.IsReusable)
     {
         _Handler = null;
     }
 }
Exemple #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;
 }
Exemple #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);
 }
Exemple #4
0
 public void ReleaseHandler(IHttpHandler /*!*/ handler)
 {
     handler  = null;
     _Handler = null;
 }
Exemple #5
0
 public void ReleaseHandler(IHttpHandler/*!*/ handler)
 {
     if(_Handler != null && !_Handler.IsReusable) {
         _Handler = null;
     }
 }
Exemple #6
0
 public void ReleaseHandler(IHttpHandler/*!*/ handler) {
     handler = null;
     _Handler = null;
 }