Amazon.SQS.AmazonSQSClient.GetQueueAttributesAsync C# (CSharp) Метод

GetQueueAttributesAsync() публичный Метод

Initiates the asynchronous execution of the GetQueueAttributes operation.
public GetQueueAttributesAsync ( GetQueueAttributesRequest request, GetQueueAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.SQS.Model.GetQueueAttributesRequest Container for the necessary parameters to execute the GetQueueAttributes operation on AmazonSQSClient.
callback GetQueueAttributesResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options Amazon.Runtime.AsyncOptions A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
Результат void
        public void GetQueueAttributesAsync(GetQueueAttributesRequest request, AmazonServiceCallback<GetQueueAttributesRequest, GetQueueAttributesResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new GetQueueAttributesRequestMarshaller();
            var unmarshaller = GetQueueAttributesResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<GetQueueAttributesRequest,GetQueueAttributesResponse> responseObject 
                            = new AmazonServiceResult<GetQueueAttributesRequest,GetQueueAttributesResponse>((GetQueueAttributesRequest)req, (GetQueueAttributesResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<GetQueueAttributesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonSQSClient::GetQueueAttributesAsync ( GetQueueAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSQSClient::GetQueueAttributesAsync ( string queueUrl, List attributeNames, System cancellationToken = default(CancellationToken) ) : Task
AmazonSQSClient::GetQueueAttributesAsync ( string queueUrl, List attributeNames, GetQueueAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSQSClient