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

Search Results for

    Class HttpContextExtensions

    Extension methods for HttpContext.

    Inheritance
    object
    HttpContextExtensions
    Namespace: Singulink.Net.Http.Api.Service
    Assembly: Singulink.Net.Http.Api.Service.dll
    Syntax
    public static class HttpContextExtensions

    Methods

    Name Description
    BindSessionTokenAsync<TSessionToken>(HttpContext, ParameterInfo)

    Binds a session token from the HTTP context based on the parameter's nullability and attributes.

    GetRequiredSessionContext<TSessionToken>(HttpContext)

    Gets the session context from the HTTP context.

    GetRequiredSessionTokenAsync<TSessionToken>(HttpContext, SessionAccessOptions)

    Gets the session token from the HTTP context. If the user is not signed in, throws an UnauthorizedApiException.

    GetSessionContext<TSessionToken>(HttpContext)

    Gets the session context from the HTTP context.

    GetSessionTokenAsync<TSessionToken>(HttpContext, SessionAccessOptions)

    Gets the session token from the HTTP context. If the user is not signed in, returns null.

    © Singulink. All rights reserved.