Skip to content

Commit f3313a2

Browse files
committed
Updates
1 parent 91d44a4 commit f3313a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aspnetcore/signalr/httpcontext.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ Even when an <xref:Microsoft.AspNetCore.Http.HttpContext> instance is available,
2020
* Long polling receives a new context per client "poll" request.
2121
* A SignalR service receives a mocked/faked/shim context.
2222

23+
When in the hub, <xref:Microsoft.AspNetCore.SignalR.GetHttpContextExtensions.GetHttpContext%2A?displayProperty=nameWithType> returns the <xref:Microsoft.AspNetCore.Http.HttpContext> for the connection or `null` if the connection isn't associated with an HTTP request. Use this method to get HTTP connection information, such as HTTP headers and query strings. For more information, see <xref:signalr/hubs#the-context-object>.
24+
2325
For guidance on <xref:Microsoft.AspNetCore.Http.IHttpContextAccessor>/<xref:Microsoft.AspNetCore.Http.HttpContext> in ASP.NET Core Blazor apps, see <xref:blazor/components/httpcontext>.

0 commit comments

Comments
 (0)