// Methods public virtual IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) { if (context == null) { throw new ArgumentNullException("context"); } //if (IsClientProxyRequest(context.Request.PathInfo)) //{ // return new RestClientProxyHandler(); //} return(RestHandler.CreateHandler(context)); }
private static IHttpHandler CreateHandler(WebServiceData webServiceData, string methodName) { RestHandler handler; WebServiceMethodData methodData = webServiceData.GetMethodData(methodName); if (methodData.RequiresSession) { handler = new RestHandlerWithSession(); } else { handler = new RestHandler(); } handler._webServiceMethodData = methodData; return(handler); }