Ejemplo n.º 1
0
        private void CreateNewServerClient(TcpClient tcpClient)
        {
            var serverClient = new TcpBsonServerClient(this, tcpClient);

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

            serverClient.Start();

            var e = new ConnectedEventArgs(serverClient);

            Connected?.Invoke(this, e);
        }
Ejemplo n.º 2
0
 internal ConnectedEventArgs(TcpBsonServerClient serverClient)
 {
     ServerClient = serverClient;
 }