IHubFilter.OnDisconnectedAsync 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 the OnDisconnectedAsync(Exception) method.
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
Parameters
- context
- HubLifetimeContext
The context for OnDisconnectedAsync.
- exception
- Exception
The exception, if any, for the connection closing.
- next
- Func<HubLifetimeContext,Exception,Task>
The next filter to run, and for the final one, the Hub invocation.