internal ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return(Invoke <ListDeadLetterSourceQueuesRequest, ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// <seealso cref="Amazon.SQS.IAmazonSQS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues 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 <ListDeadLetterSourceQueuesResponse> ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return(Invoke <IRequest, ListDeadLetterSourceQueuesRequest, ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void ListDeadLetterSourceQueuesMarshallTest() { var operation = service_model.FindOperation("ListDeadLetterSourceQueues"); var request = InstantiateClassGenerator.Execute<ListDeadLetterSourceQueuesRequest>(); var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance.Unmarshall(context) as ListDeadLetterSourceQueuesResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// <seealso cref="Amazon.SQS.IAmazonSQS.ListDeadLetterSourceQueues"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues 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<ListDeadLetterSourceQueuesResponse> ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.GetInstance(); return Invoke<IRequest, ListDeadLetterSourceQueuesRequest, ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// <seealso cref="Amazon.SQS.IAmazonSQS"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues 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 EndListDeadLetterSourceQueues /// operation.</returns> public IAsyncResult BeginListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request, AsyncCallback callback, object state) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return BeginInvoke<ListDeadLetterSourceQueuesRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Returns a list of your queues that have the RedrivePolicy queue attribute configured /// with a dead letter queue. /// /// /// <para> /// For more information about using dead letter queues, see <a href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html">Using /// Amazon SQS Dead Letter Queues</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues service method.</param> /// /// <returns>The response from the ListDeadLetterSourceQueues service method, as returned by SQS.</returns> /// <exception cref="QueueDoesNotExistException"> /// The queue referred to does not exist. /// </exception> public ListDeadLetterSourceQueuesResponse ListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return Invoke<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues 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<ListDeadLetterSourceQueuesResponse> ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return InvokeAsync<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest listDeadLetterSourceQueuesRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new ListDeadLetterSourceQueuesRequestMarshaller().Marshall(listDeadLetterSourceQueuesRequest); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the ListDeadLetterSourceQueues operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListDeadLetterSourceQueues 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 ListDeadLetterSourceQueuesAsync(ListDeadLetterSourceQueuesRequest request, AmazonServiceCallback<ListDeadLetterSourceQueuesRequest, ListDeadLetterSourceQueuesResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse> responseObject = new AmazonServiceResult<ListDeadLetterSourceQueuesRequest,ListDeadLetterSourceQueuesResponse>((ListDeadLetterSourceQueuesRequest)req, (ListDeadLetterSourceQueuesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListDeadLetterSourceQueuesRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
IAsyncResult invokeListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new ListDeadLetterSourceQueuesRequestMarshaller(); var unmarshaller = ListDeadLetterSourceQueuesResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }