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

Search Results for

    Method InvokeMethodAsync

    InvokeMethodAsync(HubInvocationContext, Func<HubInvocationContext, ValueTask<object?>>)

    Allows handling of all Hub method invocations.

    Declaration
    [UnconditionalSuppressMessage("AOT", "IL3050", Justification = "SignalR hubs require dynamic code and unreferenced code (AddSignalR carries the same requirements), and the filter registration method is annotated accordingly.")]
    [UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "SignalR hubs require dynamic code and unreferenced code (AddSignalR carries the same requirements), and the filter registration method is annotated accordingly.")]
    public ValueTask<object?> InvokeMethodAsync(HubInvocationContext invocationContext, Func<HubInvocationContext, ValueTask<object?>> next)
    Parameters
    Type Name Description
    HubInvocationContext invocationContext

    The context for the method invocation that holds all the important information about the invoke.

    Func<HubInvocationContext, ValueTask<object>> next

    The next filter to run, and for the final one, the Hub invocation.

    Returns
    Type Description
    ValueTask<object>

    Returns the result of the Hub method invoke.

    Implements
    IHubFilter.InvokeMethodAsync(HubInvocationContext, Func<HubInvocationContext, ValueTask<object>>)
    © Singulink. All rights reserved.