Esempio n. 1
0
 private async Task <Message> ReadChunkedBufferedMessageAsync(Task <Stream> inputStreamTask, TimeoutHelper timeoutHelper)
 {
     try
     {
         return(await _encoder.ReadMessageAsync(await inputStreamTask, _factory.BufferManager, _factory.MaxBufferSize, _contentType, await timeoutHelper.GetCancellationTokenAsync()));
     }
     catch (XmlException xmlException)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
                   new ProtocolException(SR.MessageXmlProtocolError, xmlException));
     }
 }
 private async Task <Message> ReadChunkedBufferedMessageAsync(Task <Stream> inputStreamTask)
 {
     try
     {
         return(await _encoder.ReadMessageAsync(await inputStreamTask, _factory.BufferManager, _factory.MaxBufferSize, _contentType));
     }
     catch (XmlException xmlException)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(
                   new ProtocolException(SRServiceModel.MessageXmlProtocolError, xmlException));
     }
 }