Поделиться через


RequestDecompressionServiceExtensions.AddRequestDecompression Метод

Определение

Перегрузки

AddRequestDecompression(IServiceCollection)

Добавьте службы распаковки запросов.

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Добавьте службы распаковки запросов и настройте связанные параметры.

AddRequestDecompression(IServiceCollection)

Исходный код:
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>)

Исходный код:
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.

Применяется к