Sdílet prostřednictvím


RequestDecompressionServiceExtensions.AddRequestDecompression Metoda

Definice

Přetížení

AddRequestDecompression(IServiceCollection)

Přidejte služby dekomprese požadavků.

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Přidejte služby dekomprese požadavků a nakonfigurujte související možnosti.

AddRequestDecompression(IServiceCollection)

Zdroj:
RequestDecompressionServiceExtensions.cs

Přidejte služby dekomprese požadavků.

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

Parametry

services
IServiceCollection

Pro IServiceCollection přidání služeb.

Návraty

Hodnota IServiceCollection

Platí pro

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Zdroj:
RequestDecompressionServiceExtensions.cs

Přidejte služby dekomprese požadavků a nakonfigurujte související možnosti.

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

Parametry

services
IServiceCollection

Pro IServiceCollection přidání služeb.

configureOptions
Action<RequestDecompressionOptions>

Delegát pro konfiguraci .RequestDecompressionOptions

Návraty

Hodnota IServiceCollection

Platí pro