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

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

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

Same methods

AmazonSimpleEmailServiceClient::CreateReceiptRuleSetAsync ( CreateReceiptRuleSetRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonSimpleEmailServiceClient