ResponseCompressionProvider(IServiceProvider, IOptions<ResponseCompressionOptions>) 构造函数

定义

如果未指定压缩提供程序,则默认情况下使用 GZip。

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))

参数

services
IServiceProvider

实例化压缩提供程序时将使用的服务。

options
IOptions<ResponseCompressionOptions>

此实例的选项。

适用于