Пример #1
0
        private void CreateNewServerClient(TcpClient tcpClient)
        {
            var serverClient = new TcpJsonServerClient(this, tcpClient);

            serverClient.Stoped += ServerClient_Stoped;
            mClients.Add(serverClient);

            serverClient.Start();

            var e = new ConnectedEventArgs(serverClient);

            Connected?.Invoke(this, e);
        }
Пример #2
0
 internal ConnectedEventArgs(TcpJsonServerClient serverClient)
 {
     ServerClient = serverClient;
 }