Drey.Configuration.Infrastructure.HubConnectionManager.Stop C# (CSharp) Method

Stop() public method

Shuts-down the managed HubConnection.
public Stop ( ) : void
return void
        public void Stop()
        {
            _log.Info("Hub connection event proxies are being removed.");
            _hubConnection.Received -= OnReceived;
            _hubConnection.Closed -= OnClosed;
            _hubConnection.Reconnecting -= OnReconnecting;
            _hubConnection.Reconnected -= OnReconnected;
            _hubConnection.ConnectionSlow -= OnConnectionSlow;
            _hubConnection.Error -= OnError;
            _hubConnection.StateChanged -= OnStateChanged;

            _log.Info("Hub connection is being stopped.");
            _hubConnection.Stop();
        }