RequestDecompressionServiceExtensions.AddRequestDecompression Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddRequestDecompression(IServiceCollection) |
Agregar servicios de descompresión de solicitudes. |
AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>) |
Agregue servicios de descompresión de solicitudes y configure las opciones relacionadas. |
AddRequestDecompression(IServiceCollection)
Agregar servicios de descompresión de solicitudes.
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
para IServiceCollection agregar servicios.
Devoluciones
Se aplica a
AddRequestDecompression(IServiceCollection, Action<RequestDecompressionOptions>)
Agregue servicios de descompresión de solicitudes y configure las opciones 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
para IServiceCollection agregar servicios.
- configureOptions
- Action<RequestDecompressionOptions>
Un delegado para configurar la instancia de RequestDecompressionOptions.