Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public void Shutdown(HostControl hostControl)
 {
     _serviceHandle.Shutdown(hostControl);
 }
Esempio n. 3
0
 public void Shutdown(HostControl hostControl)
 {
     _service.Shutdown(_hostControl);
 }
Esempio n. 4
0
        public void Shutdown(HostControl hostControl)
        {
            var control = new AppDomainHostControl(this);

            _service.Shutdown(control);
        }