Compartir a través de


HttpServiceCollectionExtensions.AddHttpContextAccessor Método

Definición

Agrega una implementación predeterminada para el IHttpContextAccessor servicio.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpContextAccessor (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddHttpContextAccessor : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpContextAccessor (services As IServiceCollection) As IServiceCollection

Parámetros

Devoluciones

Colección de servicios.

Se aplica a