Beispiel #1
0
        public void Stop()
        {
            Console.WriteLine("app stopped");
            Identity machineIdentity = _db.GetItem <Identity>(Store.IdentityKey);

            _channel.Leave();
            _socket.Disconnect();
            _api.Logout(machineIdentity.Jwt);
            _db.Dispose();
        }
Beispiel #2
0
 public void Stop()
 {
     Console.WriteLine("app stopped");
     _jobExecutor.Stop();
     if (Connection.IsAvailable())
     {
         var machineIdentity = _db.GetItem <Identity>(Store.IdentityKey);
         _channel.Leave();
         _socket.Disconnect();
         _api.Logout(machineIdentity.Jwt);
     }
     _db.Dispose();
 }