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