Amazon.SimpleEmail.AmazonSimpleEmailServiceClient.CloneReceiptRuleSetAsync C# (CSharp) Method

CloneReceiptRuleSetAsync() public method

Initiates the asynchronous execution of the CloneReceiptRuleSet operation.
public CloneReceiptRuleSetAsync ( CloneReceiptRuleSetRequest request, CloneReceiptRuleSetResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.SimpleEmail.Model.CloneReceiptRuleSetRequest Container for the necessary parameters to execute the CloneReceiptRuleSet operation on AmazonSimpleEmailServiceClient.
callback CloneReceiptRuleSetResponse>.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.
return void
        public void CloneReceiptRuleSetAsync(CloneReceiptRuleSetRequest request, AmazonServiceCallback<CloneReceiptRuleSetRequest, CloneReceiptRuleSetResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new CloneReceiptRuleSetRequestMarshaller();
            var unmarshaller = CloneReceiptRuleSetResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<CloneReceiptRuleSetRequest,CloneReceiptRuleSetResponse> responseObject 
                            = new AmazonServiceResult<CloneReceiptRuleSetRequest,CloneReceiptRuleSetResponse>((CloneReceiptRuleSetRequest)req, (CloneReceiptRuleSetResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<CloneReceiptRuleSetRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonSimpleEmailServiceClient::CloneReceiptRuleSetAsync ( CloneReceiptRuleSetRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleEmailServiceClient