Example #1
0
        // if MainWindow request disconnection this method is called
        public void Disconnect()
        {
            #region//// DEBUG
            Task.Factory.StartNew(() =>
            {
                mainWindowGUI.Notify("Disconnection. Inside Server.Disconnect()." + Environment.NewLine +
                                     "Token: " + token.IsCancellationRequested);
            });
            #endregion

            if (token.IsCancellationRequested)
            {
            }
        }