Example #1
0
 public Boolean Stop()
 {
     try
     {
         Log.Info("DeviceAdapter Stoping...");
         _healthThread.Stop();
         _udpListener.Stop();
         _webSocketClient.Stop();
         _deviceProxy.CloseConnection();
         IsRunning = false;
         Log.Info("DeviceAdapter stops finished...");
         return(true);
     }
     catch (Exception ex)
     {
         Log.Error(ex);
         return(false);
     }
 }