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

Search Results for

    Class HubMessage

    Defines a fire-and-forget hub message with no arguments. Messages can be sent in either direction: from the server to clients (received via a client handler) or from a client to the server (handled by a hub method with the same name).

    Inheritance
    object
    HubMessage
    Namespace: Singulink.Net.Http.Api
    Assembly: Singulink.Net.Http.Api.dll
    Syntax
    public sealed class HubMessage
    Remarks

    The message name defaults to the name of the member that the definition is assigned to (via CallerMemberNameAttribute), so definitions are typically declared as static properties in a shared contract class, e.g. public static HubMessage<string> Echo { get; } = new();.

    Constructors

    Name Description
    HubMessage(string)

    Initializes a new instance of the HubMessage class.

    Properties

    Name Description
    Name

    Gets the message name.

    Methods

    Name Description
    ToString()

    Returns a string that represents the current object.

    © Singulink. All rights reserved.