internal PurgeQueueResponse PurgeQueue(PurgeQueueRequest request) { var marshaller = new PurgeQueueRequestMarshaller(); var unmarshaller = PurgeQueueResponseUnmarshaller.Instance; return(Invoke <PurgeQueueRequest, PurgeQueueResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the PurgeQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PurgeQueue 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 <PurgeQueueResponse> PurgeQueueAsync(PurgeQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PurgeQueueRequestMarshaller(); var unmarshaller = PurgeQueueResponseUnmarshaller.Instance; return(InvokeAsync <PurgeQueueRequest, PurgeQueueResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void PurgeQueueMarshallTest() { var operation = service_model.FindOperation("PurgeQueue"); var request = InstantiateClassGenerator.Execute <PurgeQueueRequest>(); var marshaller = new PurgeQueueRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Initiates the asynchronous execution of the PurgeQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PurgeQueue 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<PurgeQueueResponse> PurgeQueueAsync(PurgeQueueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PurgeQueueRequestMarshaller(); var unmarshaller = PurgeQueueResponseUnmarshaller.Instance; return InvokeAsync<PurgeQueueRequest,PurgeQueueResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Deletes the messages in a queue specified by the <code>QueueURL</code> parameter. /// /// <important> /// <para> /// When you use the <code>PurgeQueue</code> action, you can't retrieve a message deleted /// from a queue. /// </para> /// </important> /// <para> /// When you purge a queue, the message deletion process takes up to 60 seconds. All messages /// sent to the queue before calling the <code>PurgeQueue</code> action are deleted. Messages /// sent to the queue while it is being purged might be deleted. While the queue is being /// purged, messages sent to the queue before <code>PurgeQueue</code> is called might /// be received, but are deleted within the next minute. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PurgeQueue service method.</param> /// /// <returns>The response from the PurgeQueue service method, as returned by SQS.</returns> /// <exception cref="Amazon.SQS.Model.PurgeQueueInProgressException"> /// Indicates that the specified queue previously received a <code>PurgeQueue</code> request /// within the last 60 seconds (the time it can take to delete the messages in the queue). /// </exception> /// <exception cref="Amazon.SQS.Model.QueueDoesNotExistException"> /// The queue referred to doesn't exist. /// </exception> public PurgeQueueResponse PurgeQueue(PurgeQueueRequest request) { var marshaller = new PurgeQueueRequestMarshaller(); var unmarshaller = PurgeQueueResponseUnmarshaller.Instance; return Invoke<PurgeQueueRequest,PurgeQueueResponse>(request, marshaller, unmarshaller); }
public void PurgeQueueMarshallTest() { var operation = service_model.FindOperation("PurgeQueue"); var request = InstantiateClassGenerator.Execute<PurgeQueueRequest>(); var marshaller = new PurgeQueueRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// Initiates the asynchronous execution of the PurgeQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PurgeQueue operation on AmazonSQSClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPurgeQueue /// operation.</returns> public IAsyncResult BeginPurgeQueue(PurgeQueueRequest request, AsyncCallback callback, object state) { var marshaller = new PurgeQueueRequestMarshaller(); var unmarshaller = PurgeQueueResponseUnmarshaller.Instance; return BeginInvoke<PurgeQueueRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the PurgeQueue operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PurgeQueue operation on AmazonSQSClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void PurgeQueueAsync(PurgeQueueRequest request, AmazonServiceCallback<PurgeQueueRequest, PurgeQueueResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new PurgeQueueRequestMarshaller(); var unmarshaller = PurgeQueueResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<PurgeQueueRequest,PurgeQueueResponse> responseObject = new AmazonServiceResult<PurgeQueueRequest,PurgeQueueResponse>((PurgeQueueRequest)req, (PurgeQueueResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<PurgeQueueRequest>(request, marshaller, unmarshaller, options, callbackHelper); }