示例#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);
            }
        }