internal static void CancelRequest(SafeHandle requestQueueHandle, ulong requestId) { // It is safe to ignore the return value on a cancel operation because the connection is being closed Interop.HttpApi.HttpCancelHttpRequest(requestQueueHandle, requestId, IntPtr.Zero); }