public static void CancelConnectAsync(SocketAsyncEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } e.CancelConnectAsync(); }