Exemplo n.º 1
0
        private void CancelKeyHandler(object sender, ConsoleCancelEventArgs args)
        {
            // Handle process exiting ourselves.
            args.Cancel = true;

            _taskManager.RunOnMainThread(() => { _baseServer.Shutdown("CancelKey"); });
        }
Exemplo n.º 2
0
 protected override void OnReceiveTerminationSignal(string signal)
 {
     _baseServer.Shutdown($"{signal} received");
 }
 private void DoShutdown()
 {
     _server.Shutdown(Loc.GetString("server-updates-shutdown"));
 }