HttpServiceCollectionExtensions.AddHttpContextAccessor(IServiceCollection) HttpServiceCollectionExtensions.AddHttpContextAccessor(IServiceCollection) HttpServiceCollectionExtensions.AddHttpContextAccessor(IServiceCollection) Method

Definition

Adds a default implementation for the IHttpContextAccessor service.

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

Parameters

Returns

Applies to