Exemplo n.º 1
0
        // EVENTS /////////////////////////////////////////////////////////////////////////////////
        private void OnStartCommandEntered(StartCommandEnteredMessage message)
        {
            _commuticationHub.Start();
            _connectionListener.Start();

            _serverState = ServerState.Working;
            _messenger.Send(new ConsoleMessage($"{Type}... {_serverState}"));
        }
        private void OnStartCommandEntered(StartCommandEnteredMessage message)
        {
            _numberGenerator.Start();

            _serverState = ServerState.Working;
            _messenger.Send(new ConsoleMessage($"{Type}... {_serverState}"));
            SendServerStatus(_serverState);
        }