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();
}