public override void Execute(HttpContext context) { var writer = new HtmlTextWriter(context.Response.Output); context.Response.ContentType = "text/html"; IHttpRequest request = new HttpRequestWrapper(ServicePath, GetType().Name, context.Request); IHttpResponse response = new HttpResponseWrapper(context.Response); HostContext.InitRequest(request, response); try { if (!EndpointHost.MetadataMap[request.ServicePath].MetadataFeatureEnabled) { new NotFoundHttpHandler(request.ServicePath).ProcessRequest(request, response, request.OperationName); return; } ProcessOperations(writer, request, response); } catch (Exception ex) { WriteException(writer, ex); } }
public void ProcessRequest(HttpContext context) { IHttpRequest request = new HttpRequestWrapper(_servicePath, typeof(RequestInfo).Name, context.Request); IHttpResponse response = new HttpResponseWrapper(context.Response); HostContext.InitRequest(request, response); ProcessRequest(request, response, typeof(RequestInfo).Name); }
public void ProcessRequest(HttpContext context) { IHttpRequest request = new HttpRequestWrapper(_servicePath, typeof(HystrixGlobalStreamHandler).Name, context.Request); IHttpResponse response = new HttpResponseWrapper(context.Response); HostContext.InitRequest(request, response); ProcessRequest(request, response, typeof(HystrixGlobalStreamHandler).Name); }
public void ProcessRequest(HttpContext context) { var request = context.Request; var response = context.Response; var httpReq = new AntServiceStack.WebHost.Endpoints.Extensions.HttpRequestWrapper(_servicePath, typeof(ConsulHeartbeatHandler).Name, request); var httpRes = new AntServiceStack.WebHost.Endpoints.Extensions.HttpResponseWrapper(response); HostContext.InitRequest(httpReq, httpRes); ProcessRequest(httpReq, httpRes, null); }