protected override void OnShutdown() { try { _log.Info("[Topshelf] Service is being shutdown"); _serviceHandle.Shutdown(this); _log.Info("[Topshelf] Stopped"); } catch (Exception ex) { _log.Fatal("The service did not shut down gracefully", ex); throw; } }
public void Shutdown(HostControl hostControl) { _serviceHandle.Shutdown(hostControl); }
public void Shutdown(HostControl hostControl) { _service.Shutdown(_hostControl); }
public void Shutdown(HostControl hostControl) { var control = new AppDomainHostControl(this); _service.Shutdown(control); }