ResponseCompressionProvider Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.