Amazon.SimpleEmail.AmazonSimpleEmailServiceClient.SetIdentityNotificationTopicAsync C# (CSharp) Метод

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

Initiates the asynchronous execution of the SetIdentityNotificationTopic operation.
public SetIdentityNotificationTopicAsync ( SetIdentityNotificationTopicRequest request, SetIdentityNotificationTopicResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request SetIdentityNotificationTopicRequest Container for the necessary parameters to execute the SetIdentityNotificationTopic operation on AmazonSimpleEmailServiceClient.
callback SetIdentityNotificationTopicResponse>.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 SetIdentityNotificationTopicAsync(SetIdentityNotificationTopicRequest request, AmazonServiceCallback<SetIdentityNotificationTopicRequest, SetIdentityNotificationTopicResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new SetIdentityNotificationTopicRequestMarshaller();
            var unmarshaller = SetIdentityNotificationTopicResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<SetIdentityNotificationTopicRequest,SetIdentityNotificationTopicResponse> responseObject 
                            = new AmazonServiceResult<SetIdentityNotificationTopicRequest,SetIdentityNotificationTopicResponse>((SetIdentityNotificationTopicRequest)req, (SetIdentityNotificationTopicResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<SetIdentityNotificationTopicRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonSimpleEmailServiceClient::SetIdentityNotificationTopicAsync ( SetIdentityNotificationTopicRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleEmailServiceClient