Udostępnij za pośrednictwem


HttpServiceCollectionExtensions.AddHttpContextAccessor Metoda

Definicja

Dodaje domyślną implementację IHttpContextAccessor usługi.

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

Parametry

Zwraca

Kolekcja usług.

Dotyczy