7 instantiations of HttpContextAccessor
Microsoft.AspNetCore.Http.Tests (6)
HttpContextAccessorTests.cs (6)
11var accessor = new HttpContextAccessor(); 25var accessor = new HttpContextAccessor(); 33var accessor = new HttpContextAccessor(); 78var accessor = new HttpContextAccessor(); 124var accessor = new HttpContextAccessor(); 153var accessor = new HttpContextAccessor();
Microsoft.AspNetCore.Identity.Test (1)
SignInManagerTest.cs (1)
620new HttpContextAccessor { HttpContext = context },
11 references to HttpContextAccessor
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingServiceCollectionExtensions.cs (1)
30.AddSingleton<IHttpContextAccessor, HttpContextAccessor>()
Microsoft.AspNetCore.Http (1)
HttpServiceCollectionExtensions.cs (1)
23services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
Microsoft.AspNetCore.Http.Tests (7)
HttpContextAccessorTests.cs (6)
11var accessor = new HttpContextAccessor(); 25var accessor = new HttpContextAccessor(); 33var accessor = new HttpContextAccessor(); 78var accessor = new HttpContextAccessor(); 124var accessor = new HttpContextAccessor(); 153var accessor = new HttpContextAccessor();
HttpServiceCollectionExtensionsTests.cs (1)
22Assert.Equal(typeof(HttpContextAccessor), descriptor.ImplementationType);
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
585services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); 616services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();