/// <summary> /// Initiates the asynchronous execution of the ListInvalidations operation. /// <seealso cref="Amazon.CloudFront.IAmazonCloudFront"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListInvalidations operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <ListInvalidationsResponse> ListInvalidationsAsync(ListInvalidationsRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListInvalidationsRequestMarshaller(); var unmarshaller = ListInvalidationsResponseUnmarshaller.Instance; return(Invoke <IRequest, ListInvalidationsRequest, ListInvalidationsResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal ListInvalidationsResponse ListInvalidations(ListInvalidationsRequest request) { var marshaller = new ListInvalidationsRequestMarshaller(); var unmarshaller = ListInvalidationsResponseUnmarshaller.Instance; return(Invoke <ListInvalidationsRequest, ListInvalidationsResponse>(request, marshaller, unmarshaller)); }
internal ListInvalidationsResponse ListInvalidations(ListInvalidationsRequest request) { var task = ListInvalidationsAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }