Example #1
0
 private void RecreateConnection()
 {
     ConnectionState = ManagerConnectionState.Connecting;
     if (_serviceClient != null)
     {
         _serviceClient.Close();
     }
     _serviceClient = ClientsManager.Create(_credentials.Value);
 }
Example #2
0
 public void StopListenChanges()
 {
     _listenersCancellationTokenSource?.Cancel();
     _serviceClient?.Close();
     ConnectionState = ManagerConnectionState.Disconnected;
 }