private void ProcessWorkflowRequest(IHttpListenerContext httpcontext) { var request = WorkflowHttpRequest.Create(httpcontext.Request); var response = _workflowHandler.HandleRequest(request); CopyResponse(response, httpcontext.Response); }
private static WorkflowHttpRequest CreateRequest(string httpMethod, string url, string httpMessage, string contentType, string accept) { var request = new WorkflowHttpRequest { Accept = accept, ContentType = contentType, HttpMethod = httpMethod, RawUrl = url, InputStream = httpMessage != null ? new MemoryStream(Encoding.ASCII.GetBytes(httpMessage)) : new MemoryStream() }; return(request); }
private static WorkflowHttpRequest CreateRequest(string httpMethod, string url, string httpMessage, string contentType, string accept) { var request = new WorkflowHttpRequest { Accept = accept, ContentType = contentType, HttpMethod = httpMethod, RawUrl = url, InputStream = httpMessage != null ? new MemoryStream(Encoding.ASCII.GetBytes(httpMessage)) : new MemoryStream() }; return request; }