RequestDecompressionServiceExtensions.AddRequestDecompression 方法

定义

重载

AddRequestDecompression(IServiceCollection)

添加请求解压缩服务。

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

添加请求解压缩服务并配置相关选项。

AddRequestDecompression(IServiceCollection)

Source:
RequestDecompressionServiceExtensions.cs

添加请求解压缩服务。

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用于添加服务的 。

返回

IServiceCollection

适用于

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Source:
RequestDecompressionServiceExtensions.cs

添加请求解压缩服务并配置相关选项。

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 的委托。

返回

IServiceCollection

适用于