예제 #1
0
        protected override void Connected(Socket socket)
        {
            Connection connection = new Connection(socket ?? throw new ArgumentNullException(nameof(socket)));

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