Amazon.S3.AmazonS3Client.GetBucketVersioningAsync C# (CSharp) Method

GetBucketVersioningAsync() public method

Initiates the asynchronous execution of the GetBucketVersioning operation.
public GetBucketVersioningAsync ( GetBucketVersioningRequest request, GetBucketVersioningResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request GetBucketVersioningRequest Container for the necessary parameters to execute the GetBucketVersioning operation on AmazonS3Client.
callback GetBucketVersioningResponse>.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.
return void
        public void GetBucketVersioningAsync(GetBucketVersioningRequest request, AmazonServiceCallback<GetBucketVersioningRequest, GetBucketVersioningResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new GetBucketVersioningRequestMarshaller();
            var unmarshaller = GetBucketVersioningResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<GetBucketVersioningRequest,GetBucketVersioningResponse> responseObject 
                            = new AmazonServiceResult<GetBucketVersioningRequest,GetBucketVersioningResponse>((GetBucketVersioningRequest)req, (GetBucketVersioningResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<GetBucketVersioningRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonS3Client::GetBucketVersioningAsync ( GetBucketVersioningRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonS3Client::GetBucketVersioningAsync ( string bucketName, System cancellationToken = default(CancellationToken) ) : Task
AmazonS3Client::GetBucketVersioningAsync ( string bucketName, GetBucketVersioningResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonS3Client