Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of ODataOuterRequestMessage.
 /// </summary>
 /// <param name="requestMessage">DataServiceClientRequestMessage instance.</param>
 /// <param name="requestInfo">RequestInfo instance.</param>
 /// <param name="descriptor">Descriptor for this request.</param>
 internal TopLevelRequestMessageWrapper(DataServiceClientRequestMessage requestMessage, RequestInfo requestInfo, Descriptor descriptor)
     : base(requestMessage, requestInfo, descriptor)
 {
     // Wrapper for the top-level request messages which caches the request stream as it is written. In order to keep the sync and non-async
     // code the same, we write all requests into an cached stream and then copy it to the underlying network stream in sync or async manner.
     this.messageWithCachedStream = new RequestMessageWithCachedStream(this.requestMessage);
 }
 /// <summary>
 /// Creates a new instance of ODataOuterRequestMessage.
 /// </summary>
 /// <param name="requestMessage">DataServiceClientRequestMessage instance.</param>
 /// <param name="requestInfo">RequestInfo instance.</param>
 /// <param name="descriptor">Descriptor for this request.</param>
 internal TopLevelRequestMessageWrapper(DataServiceClientRequestMessage requestMessage, RequestInfo requestInfo, Descriptor descriptor)
     : base(requestMessage, requestInfo, descriptor)
 {
     // Wrapper for the top-level request messages which caches the request stream as it is written. In order to keep the sync and non-async 
     // code the same, we write all requests into an cached stream and then copy it to the underlying network stream in sync or async manner.
     this.messageWithCachedStream = new RequestMessageWithCachedStream(this.requestMessage);
 }