Пример #1
0
        public void Stop()
        {
            if (this.Running && this.host != null)
            {
                this.Running = false;
                this.host.Dispose();

                Servers.Remove(this);

                _reloader.StopWatchingFile(FileName);
            }
        }
Пример #2
0
        public void Stop()
        {
            if (this.Running && this.host != null)
            {
                this.Running = false;

                this.host.StopAsync().ConfigureAwait(false);

                DashboardService.Dispose();

                Servers.Remove(this);

                _reloader.StopWatchingFile(FileName);
            }
        }
Пример #3
0
        public void Stop()
        {
            if (this.Running && this.host != null)
            {
                this.Running = false;

                this.host.StopAsync(TimeSpan.FromSeconds(1)).Wait();

                DashboardService.Dispose();

                Servers.Remove(this);

                _reloader.StopWatchingFile(FileName);
            }
        }