IHubFilter.OnDisconnectedAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ermöglicht die Behandlung der OnDisconnectedAsync(Exception) -Methode.
public:
virtual System::Threading::Tasks::Task ^ OnDisconnectedAsync(Microsoft::AspNetCore::SignalR::HubLifetimeContext ^ context, Exception ^ exception, Func<Microsoft::AspNetCore::SignalR::HubLifetimeContext ^, Exception ^, System::Threading::Tasks::Task ^> ^ next);
public virtual System.Threading.Tasks.Task OnDisconnectedAsync(Microsoft.AspNetCore.SignalR.HubLifetimeContext context, Exception? exception, Func<Microsoft.AspNetCore.SignalR.HubLifetimeContext,Exception?,System.Threading.Tasks.Task> next);
abstract member OnDisconnectedAsync : Microsoft.AspNetCore.SignalR.HubLifetimeContext * Exception * Func<Microsoft.AspNetCore.SignalR.HubLifetimeContext, Exception, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
override this.OnDisconnectedAsync : Microsoft.AspNetCore.SignalR.HubLifetimeContext * Exception * Func<Microsoft.AspNetCore.SignalR.HubLifetimeContext, Exception, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Overridable Function OnDisconnectedAsync (context As HubLifetimeContext, exception As Exception, next As Func(Of HubLifetimeContext, Exception, Task)) As Task
Parameter
- context
- HubLifetimeContext
Der Kontext für OnDisconnectedAsync.
- exception
- Exception
Die Ausnahme, falls vorhanden, für das Schließen der Verbindung.
- next
- Func<HubLifetimeContext,Exception,Task>
Der nächste Filter, der ausgeführt werden soll, und für den letzten, den Hubaufruf.