IHubFilter.InvokeMethodAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.