IHubFilter.InvokeMethodAsync Method

Definition

Allows handling of all Hub method invocations.

public:
 virtual System::Threading::Tasks::ValueTask<System::Object ^> InvokeMethodAsync(Microsoft::AspNetCore::SignalR::HubInvocationContext ^ invocationContext, Func<Microsoft::AspNetCore::SignalR::HubInvocationContext ^, System::Threading::Tasks::ValueTask<System::Object ^>> ^ next);
public virtual System.Threading.Tasks.ValueTask<object?> InvokeMethodAsync (Microsoft.AspNetCore.SignalR.HubInvocationContext invocationContext, Func<Microsoft.AspNetCore.SignalR.HubInvocationContext,System.Threading.Tasks.ValueTask<object?>> next);
abstract member InvokeMethodAsync : Microsoft.AspNetCore.SignalR.HubInvocationContext * Func<Microsoft.AspNetCore.SignalR.HubInvocationContext, System.Threading.Tasks.ValueTask<obj>> -> System.Threading.Tasks.ValueTask<obj>
override this.InvokeMethodAsync : Microsoft.AspNetCore.SignalR.HubInvocationContext * Func<Microsoft.AspNetCore.SignalR.HubInvocationContext, System.Threading.Tasks.ValueTask<obj>> -> System.Threading.Tasks.ValueTask<obj>
Public Overridable Function InvokeMethodAsync (invocationContext As HubInvocationContext, next As Func(Of HubInvocationContext, ValueTask(Of Object))) As ValueTask(Of Object)

Parameters

invocationContext
HubInvocationContext

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

next
Func<HubInvocationContext,ValueTask<Object>>

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

Returns

Returns the result of the Hub method invoke.

Applies to