Esempio n. 1
0
        protected override void Connected(Socket socket)
        {
            Connection connection = new Connection(socket ?? throw new ArgumentNullException(nameof(socket)));

            _child.Connected(connection);
            Receive(socket, connection);
        }
Esempio n. 2
0
 public void Connected(Connection connection)
 {
     if (connection == null)
     {
         throw new ArgumentNullException(nameof(connection));
     }
     _dispatcher.Invoke(() => _child.Connected(connection));
 }