YGOSharp.CoreServer.StopDelayed C# (CSharp) Method

StopDelayed() public method

public StopDelayed ( ) : void
return void
        public void StopDelayed()
        {
            _closePending = true;
            foreach (YGOClient client in _clients)
                client.Close();
        }

Usage Example

Beispiel #1
0
        public void End()
        {
            State = GameState.End;

            SendToAll(GamePacketFactory.Create(StocMessage.DuelEnd));
            _server.StopDelayed();

            if (OnGameEnd != null)
            {
                OnGameEnd(this, EventArgs.Empty);
            }
        }
All Usage Examples Of YGOSharp.CoreServer::StopDelayed