1 write to HttpContext
Microsoft.AspNetCore.Authentication (1)
Events\BaseContext.cs (1)
25HttpContext = context;
28 references to HttpContext
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
688var options = context.HttpContext.RequestServices.GetRequiredService<IOptions<DashboardOptions>>().Value;
Certificate.Optional.Sample (1)
Startup.cs (1)
25new HostString(Program.HostWithCert, context.HttpContext.Connection.LocalPort),
CookieSample (1)
Program.cs (1)
24var authData = context.HttpContext.GetEndpoint()?.Metadata.GetMetadata<IAuthorizeData>();
JwtSample (1)
Startup.cs (1)
50(context.HttpContext.WebSockets.IsWebSocketRequest || context.Request.Headers["Accept"] == "text/event-stream"))
Microsoft.AspNetCore.Authentication (2)
Events\BaseContext.cs (2)
48public HttpRequest Request => HttpContext.Request; 53public HttpResponse Response => HttpContext.Response;
Microsoft.AspNetCore.Authentication.Test (13)
CookieTests.cs (1)
542ctx.HttpContext.SignOutAsync("Cookies");
WsFederation\WsFederationTest.cs (6)
309context.HttpContext.Items["MessageReceived"] = true; 324context.HttpContext.Items["SecurityTokenReceived"] = true; 329Assert.True((bool)context.HttpContext.Items["MessageReceived"], "MessageReceived notification not invoked"); 330Assert.True((bool)context.HttpContext.Items["SecurityTokenReceived"], "SecurityTokenReceived notification not invoked"); 344context.HttpContext.Items["AuthenticationFailed"] = true; 346context.HttpContext.Request.Path = new PathString("/AuthenticationFailed");
WsFederation\WsFederationTest_Handler.cs (6)
305context.HttpContext.Items["MessageReceived"] = true; 320context.HttpContext.Items["SecurityTokenReceived"] = true; 325Assert.True((bool)context.HttpContext.Items["MessageReceived"], "MessageReceived notification not invoked"); 326Assert.True((bool)context.HttpContext.Items["SecurityTokenReceived"], "SecurityTokenReceived notification not invoked"); 340context.HttpContext.Items["AuthenticationFailed"] = true; 342context.HttpContext.Request.Path = new PathString("/AuthenticationFailed");
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3223(context.HttpContext.WebSockets.IsWebSocketRequest || context.Request.Headers["Accept"] == "text/event-stream")) 3385(context.HttpContext.WebSockets.IsWebSocketRequest || context.Request.Headers["Accept"] == "text/event-stream"))
Microsoft.AspNetCore.Identity (2)
SecurityStampValidator.cs (2)
192if (context.HttpContext.RequestServices == null) 197var validator = context.HttpContext.RequestServices.GetRequiredService<TValidator>();
Microsoft.AspNetCore.SignalR.Tests (1)
Startup.cs (1)
59(context.HttpContext.WebSockets.IsWebSocketRequest || context.Request.Headers["Accept"] == "text/event-stream"))
SignalR.Client.FunctionalTestApp (2)
Startup.cs (2)
73var endpoint = context.HttpContext.Features.Get<IEndpointFeature>()?.Endpoint; 76var request = context.HttpContext.Request;
SocialSample (2)
Startup.cs (2)
141var response = await context.Backchannel.SendAsync(request, context.HttpContext.RequestAborted); 202var response = await context.Backchannel.SendAsync(request, context.HttpContext.RequestAborted);