Share via


ResponseCompressionProvider Constructor

Definition

If no compression providers are specified then GZip is used by default.

public:
 ResponseCompressionProvider(IServiceProvider ^ services, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::ResponseCompression::ResponseCompressionOptions ^> ^ options);
public ResponseCompressionProvider (IServiceProvider services, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCompression.ResponseCompressionOptions> options);
new Microsoft.AspNetCore.ResponseCompression.ResponseCompressionProvider : IServiceProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.ResponseCompression.ResponseCompressionOptions> -> Microsoft.AspNetCore.ResponseCompression.ResponseCompressionProvider
Public Sub New (services As IServiceProvider, options As IOptions(Of ResponseCompressionOptions))

Parameters

services
IServiceProvider

Services to use when instantiating compression providers.

options
IOptions<ResponseCompressionOptions>

The options for this instance.

Applies to