Microsoft.AspNetCore.SignalR.Hubs.HubPipelineModule.OnBeforeDisconnect C# (CSharp) Method

OnBeforeDisconnect() protected method

This method is called before the disconnect components of any modules added later to the IHubPipeline are executed. If this returns false, then those later-added modules and the IHub.OnDisconnected(bool) method will not be run.
protected OnBeforeDisconnect ( IHub hub, bool stopCalled ) : bool
hub IHub The hub the client has disconnected from.
stopCalled bool /// true, if stop was called on the client closing the connection gracefully; /// false, if the client timed out. Timeouts can be caused by clients reconnecting to another SignalR server in scaleout. ///
return bool
        protected virtual bool OnBeforeDisconnect(IHub hub, bool stopCalled)
        {
            return true;
        }