private static Task <WebResponse> GetResponseAsync(this WebRequest req, CloudQueueClient service) { return(new APMTask <WebResponse>( req.BeginGetResponse, (asyncresult) => service.EndGetResponse(asyncresult, req), req.Abort)); }
private static Task<WebResponse> GetResponseAsync(this WebRequest req, CloudQueueClient service) { return new APMTask<WebResponse>( req.BeginGetResponse, (asyncresult) => service.EndGetResponse(asyncresult, req), req.Abort); }