Sprache

IHubFilter.InvokeMethodAsync Methode

Definition

Ermöglicht die Behandlung aller Hub-Methodenaufrufe.

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)

Parameter

invocationContext
HubInvocationContext

Der Kontext für den Methodenaufruf, der alle wichtigen Informationen zum Aufruf enthält.

next
Func<HubInvocationContext,ValueTask<Object>>

Der nächste Filter, der ausgeführt werden soll, und für den letzten, den Hubaufruf.

Gibt zurück

Gibt das Ergebnis des Aufrufs der Hub-Methode zurück.

Gilt für: