private static void Context_SendingSignedRequest <T>(ExecutionState <T> executionState, HttpWebRequest req) { // Handle multiple astoria transactions per execute if (executionState.Req != null) { executionState.Resp = GetResponseForRequest(executionState.Req); TableExecutor.FireResponseReceived(executionState); executionState.Req = null; // Finish previous attempt TableExecutor.FinishRequestAttempt(executionState); // on successes for multiple Astoria operations start new request if ((int)executionState.Resp.StatusCode < 300) { // 0. Setup Next RequestResult TableExecutor.StartRequestAttempt(executionState); } TableExecutor.CheckTimeout <T>(executionState, true); } executionState.Req = req; TableExecutor.ApplyUserHeaders(executionState); TableExecutor.FireSendingRequest(executionState); }
private static void Context_SendingSignedRequest <T>(ExecutionState <T> executionState, HttpWebRequest req) { // Finish previous attempt. if (executionState.Req != null) { TableExecutor.FinishRequestAttempt(executionState); TableExecutor.StartRequestAttempt(executionState); TableExecutor.CheckTimeout <T>(executionState, true); } // Start new operation. executionState.Req = req; TableExecutor.ApplyUserHeaders(executionState); TableExecutor.FireSendingRequest(executionState); }