RequestDecompressionServiceExtensions.AddRequestDecompression 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddRequestDecompression(IServiceCollection) |
添加请求解压缩服务。 |
AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>) |
添加请求解压缩服务并配置相关选项。 |
AddRequestDecompression(IServiceCollection)
添加请求解压缩服务。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestDecompression (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRequestDecompression : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestDecompression (services As IServiceCollection) As IServiceCollection
参数
- services
- IServiceCollection
IServiceCollection用于添加服务的 。
返回
适用于
AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)
添加请求解压缩服务并配置相关选项。
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRequestDecompression (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.RequestDecompression.RequestDecompressionOptions> configureOptions);
static member AddRequestDecompression : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.RequestDecompression.RequestDecompressionOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRequestDecompression (services As IServiceCollection, configureOptions As Action(Of RequestDecompressionOptions)) As IServiceCollection
参数
- services
- IServiceCollection
IServiceCollection用于添加服务的 。
- configureOptions
- Action<RequestDecompressionOptions>
用于配置 RequestDecompressionOptions 的委托。