Method GetRequiredSessionContext
GetRequiredSessionContext<TSessionToken>(HubCallerContext)
Gets the session context for the hub connection.
Declaration
public static HttpSessionContext<TSessionToken> GetRequiredSessionContext<TSessionToken>(this HubCallerContext context) where TSessionToken : class, ISessionToken
Parameters
Returns
Type Parameters
| Name |
Description |
| TSessionToken |
|
Exceptions
| Type |
Condition |
| InvalidOperationException |
The hub connection does not have an HTTP context or session handling is not registered.
|