Amazon.CloudWatchEvents.AmazonCloudWatchEventsClient.BeginDisableRule C# (CSharp) Method

BeginDisableRule() public method

Initiates the asynchronous execution of the DisableRule operation.
public BeginDisableRule ( DisableRuleRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatchEvents.Model.DisableRuleRequest Container for the necessary parameters to execute the DisableRule operation on AmazonCloudWatchEventsClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object 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 IAsyncResult
        public IAsyncResult BeginDisableRule(DisableRuleRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new DisableRuleRequestMarshaller();
            var unmarshaller = DisableRuleResponseUnmarshaller.Instance;

            return BeginInvoke<DisableRuleRequest>(request, marshaller, unmarshaller,
                callback, state);
        }