protected override void Connected(Socket socket) { Connection connection = new Connection(socket ?? throw new ArgumentNullException(nameof(socket))); _child.Connected(connection); Receive(socket, connection); }
public void Connected(Connection connection) { if (connection == null) { throw new ArgumentNullException(nameof(connection)); } _dispatcher.Invoke(() => _child.Connected(connection)); }