public void Finish() { if (currentBatch != null) { currentBatch.GetResponse().Verify(); } currentBatch = null; currentChangeset = null; }
public virtual AstoriaResponse GetResponse() { LogRequest(); OnSend(this); // NOTHING should come in between this and actually sending the request #if !ClientSKUFramework SetupAPICallLog(); #endif AstoriaResponse response; if (AstoriaTestProperties.BatchAllRequests) { BatchRequest batchRequest = new BatchRequest(Workspace); if (Verb_Internal == RequestVerb.Get) { batchRequest.Add(this); } else { BatchChangeset changeset = batchRequest.GetChangeset(); changeset.Add(this); } BatchResponse batchResponse = batchRequest.GetResponse() as BatchResponse; response = batchResponse.Responses.FirstOrDefault(); } else { response = RequestSender.SendRequest(this); } #if !ClientSKUFramework // NOTHING should come in between this and actually recieving the response RetrieveAPICallLog(); #endif OnReceive(this, response); return(response); }