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

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

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

Same methods

AmazonLambdaClient::DeleteAliasAsync ( DeleteAliasRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonLambdaClient