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

Search Results for

    Method GetClientDevice

    GetClientDevice(HttpContext)

    Gets the device that is making the request, as session handling records it (see Device): the platform, name and version of the browser or app from the User-Agent header if they can be identified, otherwise the header itself, shortened to MaxDeviceLength. The device is read the first time and kept for the rest of the request, or of the SignalR connection that the request established.

    Declaration
    public static string GetClientDevice(this HttpContext httpContext)
    Parameters
    Type Name Description
    HttpContext httpContext
    Returns
    Type Description
    string
    Exceptions
    Type Condition
    BadRequestApiException

    The request has no User-Agent header, or an empty one (UserAgentRequired).

    © Singulink. All rights reserved.