Microsoft.AspNet.SignalR.PersistentConnection.OnDisconnected C# (CSharp) Method

OnDisconnected() protected method

Called when a connection disconnects gracefully or due to a timeout.
protected OnDisconnected ( IRequest request, string connectionId, bool stopCalled ) : System.Threading.Tasks.Task
request IRequest The for the current connection.
connectionId string The id of the disconnected connection.
stopCalled bool /// true, if stop was called on the client closing the connection gracefully; /// false, if the connection has been lost for longer than the /// . /// Timeouts can occur in scaleout when clients reconnect with another server. ///
return System.Threading.Tasks.Task
        protected virtual Task OnDisconnected(IRequest request, string connectionId, bool stopCalled)
        {
            return TaskAsyncHelper.Empty;
        }