Exemplo n.º 1
0
 public void Stop()
 {
     Logger.Info("Shutting down HtcSharp...");
     PluginsManager.Call_OnDisable();
     IsStopped = false;
     foreach (var engine in _engines)
     {
         try {
             Logger.Info($"Stopping Engine: '{engine.GetType().Name}'");
             engine.Stop();
         } catch (Exception ex) {
             Logger.Error($"Failed to stop Engine: '{engine.GetType().Name}'", ex);
         }
     }
     _engines.Clear();
     _availableEngines.Clear();
 }