RequestDecompressionServiceExtensions.AddRequestDecompression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddRequestDecompression(IServiceCollection) |
Add request decompression services. |
AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>) |
Add request decompression services and configure the related options. |
AddRequestDecompression(IServiceCollection)
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>)
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.