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