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

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

Initiates the asynchronous execution of the UpdateEventSourceMapping 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 UpdateEventSourceMappingAsync ( UpdateEventSourceMappingRequest request, UpdateEventSourceMappingResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request Amazon.Lambda.Model.UpdateEventSourceMappingRequest Container for the necessary parameters to execute the UpdateEventSourceMapping operation on AmazonLambdaClient.
callback UpdateEventSourceMappingResponse>.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 UpdateEventSourceMappingAsync(UpdateEventSourceMappingRequest request, AmazonServiceCallback<UpdateEventSourceMappingRequest, UpdateEventSourceMappingResponse> callback, AsyncOptions options = null)
        {
            if (AWSConfigs.HttpClient == AWSConfigs.HttpClientOption.UnityWWW)
            {
                throw new InvalidOperationException("UpdateEventSourceMapping is only allowed with AWSConfigs.HttpClientOption.UnityWebRequest API option");
            }
            options = options == null?new AsyncOptions():options;
            var marshaller = new UpdateEventSourceMappingRequestMarshaller();
            var unmarshaller = UpdateEventSourceMappingResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<UpdateEventSourceMappingRequest,UpdateEventSourceMappingResponse> responseObject 
                            = new AmazonServiceResult<UpdateEventSourceMappingRequest,UpdateEventSourceMappingResponse>((UpdateEventSourceMappingRequest)req, (UpdateEventSourceMappingResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<UpdateEventSourceMappingRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonLambdaClient::UpdateEventSourceMappingAsync ( UpdateEventSourceMappingRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonLambdaClient