Class HubCallerContextExtensions
Extension methods for accessing the session from a HubCallerContext.
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public static class HubCallerContextExtensions
Methods
| Name | Description |
|---|---|
| GetRequiredSessionContext<TSessionToken>(HubCallerContext) | Gets the session context for the hub connection. |
| GetRequiredSessionTokenAsync<TSessionToken>(HubCallerContext, SessionAccessOptions) | Gets the session token for the hub connection. If the user is not signed in, throws an UnauthorizedApiException (which is reported to the client as an API error when the ApiExceptionHubFilter is registered). |
| GetSessionTokenAsync<TSessionToken>(HubCallerContext, SessionAccessOptions) | Gets the session token for the hub connection. If the user is not signed in, returns null. |