Ejemplo n.º 1
0
 public StreamCopyHttpContent(Stream source, IStreamCopier streamCopier, bool autoFlushHttpClientOutgoingStream, CancellationToken cancellation)
 {
     _source       = source ?? throw new ArgumentNullException(nameof(source));
     _streamCopier = streamCopier ?? throw new ArgumentNullException(nameof(streamCopier));
     _autoFlushHttpClientOutgoingStream = autoFlushHttpClientOutgoingStream;
     _cancellation = cancellation;
 }
        public StreamCopyHttpContent(Stream source, IStreamCopier streamCopier, CancellationToken cancellation)
        {
            Contracts.CheckValue(source, nameof(source));
            Contracts.CheckValue(streamCopier, nameof(streamCopier));

            _source       = source;
            _streamCopier = streamCopier;
            _cancellation = cancellation;
        }
Ejemplo n.º 3
0
        public StreamCopyHttpContent(Stream source, IStreamCopier streamCopier, bool autoFlushHttpClientOutgoingStream, CancellationToken cancellation)
        {
            Contracts.CheckValue(source, nameof(source));
            Contracts.CheckValue(streamCopier, nameof(streamCopier));

            _source       = source;
            _streamCopier = streamCopier;
            _autoFlushHttpClientOutgoingStream = autoFlushHttpClientOutgoingStream;
            _cancellation = cancellation;
        }