Пример #1
0
 public DecompressorProvider(
     ICompressionTypeDeterminer compressionDeterminer,
     IGZipStreamProvider gZipStreamProvider,
     IDeflateStreamProvider deflateStreamProvider,
     ILogWriter logWriter)
 {
     this.compressionDeterminer = compressionDeterminer;
     this.gZipStreamProvider    = gZipStreamProvider;
     this.deflateStreamProvider = deflateStreamProvider;
     this.logWriter             = logWriter;
 }
Пример #2
0
 public RequestDecompressionMiddleware(
     RequestDelegate next,
     ICompressionTypeDeterminer compressionDeterminer,
     IDecompressorProvider decompressorProvider,
     ILogWriter logWriter)
 {
     this.next = next ??
                 throw new ArgumentNullException(nameof(next));
     this.compressionDeterminer = compressionDeterminer;
     this.decompressorProvider  = decompressorProvider;
     this.logWriter             = logWriter;
 }