Share via


RequestDecompressionServiceExtensions.AddRequestDecompression Method

Definition

Overloads

AddRequestDecompression(IServiceCollection)

Add request decompression services.

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Add request decompression services and configure the related options.

AddRequestDecompression(IServiceCollection)

Source:
RequestDecompressionServiceExtensions.cs

Add request decompression services.

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

Parameters

services
IServiceCollection

The IServiceCollection for adding services.

Returns

The IServiceCollection.

Applies to

AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)

Source:
RequestDecompressionServiceExtensions.cs

Add request decompression services and configure the related options.

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

Parameters

services
IServiceCollection

The IServiceCollection for adding services.

configureOptions
Action<RequestDecompressionOptions>

A delegate to configure the RequestDecompressionOptions.

Returns

The IServiceCollection.

Applies to