public void Cancel(object request) { HttpClientRequest httpClientRequest = request as HttpClientRequest; if (httpClientRequest != null) { httpClientRequest.Abort(); } }