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

Search Results for

    Class HubMethod<T1, T2, T3, TResult>

    Defines a hub method with three arguments that returns a result.

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

    The type of the first method argument.

    T2

    The type of the second method argument.

    T3

    The type of the third method argument.

    TResult

    The type of the result.

    Remarks

    The method 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 HubMethod<int, int> Double { get; } = new();.

    Constructors

    Name Description
    HubMethod(string)

    Initializes a new instance of the HubMethod<TResult> class.

    Properties

    Name Description
    Name

    Gets the method name.

    Methods

    Name Description
    ToString()

    Returns a string that represents the current object.

    © Singulink. All rights reserved.