HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Class HubCallerContextExtensions

    Extension methods for accessing the session from a HubCallerContext.

    Inheritance
    object
    HubCallerContextExtensions
    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.

    © Singulink. All rights reserved.