Amazon.Lambda.AmazonLambdaClient.DeleteEventSourceMappingAsync C# (CSharp) Метод

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

Initiates the asynchronous execution of the DeleteEventSourceMapping operation. This API is supported only when AWSConfigs.HttpClient is set to AWSConfigs.HttpClientOption.UnityWebRequest, the default value for this configuration option is AWSConfigs.HttpClientOption.UnityWWW
public DeleteEventSourceMappingAsync ( Amazon.Lambda.Model.DeleteEventSourceMappingRequest request, DeleteEventSourceMappingResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.Lambda.Model.DeleteEventSourceMappingRequest Container for the necessary parameters to execute the DeleteEventSourceMapping operation on AmazonLambdaClient.
callback DeleteEventSourceMappingResponse>.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.
Результат void
        public void DeleteEventSourceMappingAsync(DeleteEventSourceMappingRequest request, AmazonServiceCallback<DeleteEventSourceMappingRequest, DeleteEventSourceMappingResponse> callback, AsyncOptions options = null)
        {
            if (AWSConfigs.HttpClient == AWSConfigs.HttpClientOption.UnityWWW)
            {
                throw new InvalidOperationException("DeleteEventSourceMapping is only allowed with AWSConfigs.HttpClientOption.UnityWebRequest API option");
            }
            options = options == null?new AsyncOptions():options;
            var marshaller = new DeleteEventSourceMappingRequestMarshaller();
            var unmarshaller = DeleteEventSourceMappingResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<DeleteEventSourceMappingRequest,DeleteEventSourceMappingResponse> responseObject 
                            = new AmazonServiceResult<DeleteEventSourceMappingRequest,DeleteEventSourceMappingResponse>((DeleteEventSourceMappingRequest)req, (DeleteEventSourceMappingResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<DeleteEventSourceMappingRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonLambdaClient::DeleteEventSourceMappingAsync ( Amazon.Lambda.Model.DeleteEventSourceMappingRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonLambdaClient