Esempio n. 1
0
        public override void Destroy()
        {
            this.Logout();

            base.Destroy();
            Phase = ConnectionPhase.P0Start;
            ClientAgentEvent?.Invoke(this,
                                     new ClientAgentEventArgs(ClientAgentEventType.Disconnected | ClientAgentEventType.Prompt, $"{this} was destroyed."));

            transPool.Destroy();
            transPool       = null;
            this.postOffice = null;
            logger.Debug("transaction pool destroyed.");
        }
 /// <summary>
 /// stop the server, restart the server by inoking 'Run()'
 /// </summary>
 public void Stop()
 {
     transactionPool.Destroy();
     listenThread.Abort();
     socket.Close();
 }