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

Search Results for

    Class HubMessage<T1, T2>

    Defines a fire-and-forget hub message with two arguments.

    Inheritance
    object
    HubMessage<T1, T2>
    Namespace: Singulink.Net.Http.Api
    Assembly: Singulink.Net.Http.Api.dll
    Syntax
    public sealed class HubMessage<T1, T2>
    Type Parameters
    Name Description
    T1

    The type of the first message argument.

    T2

    The type of the second message argument.

    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.