Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient.SetSubscriptionAttributesAsync C# (CSharp) Метод

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

Initiates the asynchronous execution of the SetSubscriptionAttributes operation.
public SetSubscriptionAttributesAsync ( SetSubscriptionAttributesRequest request, SetSubscriptionAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request SetSubscriptionAttributesRequest Container for the necessary parameters to execute the SetSubscriptionAttributes operation on AmazonSimpleNotificationServiceClient.
callback SetSubscriptionAttributesResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options 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 SetSubscriptionAttributesAsync(SetSubscriptionAttributesRequest request, AmazonServiceCallback<SetSubscriptionAttributesRequest, SetSubscriptionAttributesResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new SetSubscriptionAttributesRequestMarshaller();
            var unmarshaller = SetSubscriptionAttributesResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<SetSubscriptionAttributesRequest,SetSubscriptionAttributesResponse> responseObject 
                            = new AmazonServiceResult<SetSubscriptionAttributesRequest,SetSubscriptionAttributesResponse>((SetSubscriptionAttributesRequest)req, (SetSubscriptionAttributesResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<SetSubscriptionAttributesRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonSimpleNotificationServiceClient::SetSubscriptionAttributesAsync ( SetSubscriptionAttributesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::SetSubscriptionAttributesAsync ( string subscriptionArn, string attributeName, string attributeValue, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleNotificationServiceClient::SetSubscriptionAttributesAsync ( string subscriptionArn, string attributeName, string attributeValue, SetSubscriptionAttributesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonSimpleNotificationServiceClient