public CrossAppDomainResponseData ProcessRequest(CrossAppDomainRequestData requestData) { var responseData = new CrossAppDomainResponseData(); // can be rewritten to support true async later on (beginrequest/endrequest) using (var request = new GateWorkerRequest(requestData, responseData)) { HttpRuntime.ProcessRequest(request); request.WaitForEnd(); } return responseData; }
public GateWorkerRequest(CrossAppDomainRequestData requestData, CrossAppDomainResponseData responseData) { _requestData = requestData; _responseData = responseData; _ended = new ManualResetEventSlim(); }