17 references to GetHttpContext
Microsoft.AspNetCore.Components.Server (1)
ComponentHub.cs (1)
126var resourceCollection = Context.GetHttpContext().GetEndpoint()?.Metadata.GetMetadata<ResourceAssetCollection>();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
Hubs.cs (3)
59var context = Context.GetHttpContext(); 78return Context.GetHttpContext().Request.Cookies[cookieName]; 103return Context.GetHttpContext()?.Request?.Protocol ?? "unknown";
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTests.cs (1)
2316Assert.NotNull(resource.Context.GetHttpContext());
HubConnectionHandlerTestUtils\Hubs.cs (2)
169return Context.GetHttpContext() != null; 1461string id = Context.GetHttpContext()?.Request.Query["client"] ?? string.Empty;
SignalR.Client.FunctionalTestApp (4)
TestHub.cs (4)
42return int.Parse(Context.GetHttpContext().Request.Query["numRedirects"], CultureInfo.InvariantCulture); 134return Context.GetHttpContext().Request.Headers["Content-Type"]; 139return Context.GetHttpContext().Request.Headers[headerName]; 144var cookies = Context.GetHttpContext().Request.Cookies;
SignalRSamples (6)
Hubs\Chat.cs (2)
12var name = Context.GetHttpContext().Request.Query["name"]; 18var name = Context.GetHttpContext().Request.Query["name"];
Hubs\DynamicChat.cs (2)
12var name = Context.GetHttpContext().Request.Query["name"]; 18var name = Context.GetHttpContext().Request.Query["name"];
Hubs\HubTChat.cs (2)
12var name = Context.GetHttpContext().Request.Query["name"]; 18var name = Context.GetHttpContext().Request.Query["name"];