Compartilhar via


RequestDecompressionServiceExtensions.AddRequestDecompression Método

Definição

Sobrecargas

AddRequestDecompression(IServiceCollection)

Adicionar serviços de descompactação de solicitação.

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Adicione serviços de descompactação de solicitação e configure as opções relacionadas.

AddRequestDecompression(IServiceCollection)

Origem:
RequestDecompressionServiceExtensions.cs

Adicionar serviços de descompactação de solicitação.

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

Parâmetros

services
IServiceCollection

O IServiceCollection para adicionar serviços.

Retornos

O IServiceCollection.

Aplica-se a

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Origem:
RequestDecompressionServiceExtensions.cs

Adicione serviços de descompactação de solicitação e configure as opções relacionadas.

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

Parâmetros

services
IServiceCollection

O IServiceCollection para adicionar serviços.

configureOptions
Action<RequestDecompressionOptions>

Um delegado para configurar o RequestDecompressionOptions.

Retornos

O IServiceCollection.

Aplica-se a