Amazon.S3.AmazonS3Client.GetObjectTaggingAsync C# (CSharp) Метод

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

Initiates the asynchronous execution of the GetObjectTagging operation.
public GetObjectTaggingAsync ( GetObjectTaggingRequest request, GetObjectTaggingResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
request GetObjectTaggingRequest Container for the necessary parameters to execute the GetObjectTagging operation on AmazonS3Client.
callback GetObjectTaggingResponse>.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.
Результат void
        public void GetObjectTaggingAsync(GetObjectTaggingRequest request, AmazonServiceCallback<GetObjectTaggingRequest, GetObjectTaggingResponse> callback, AsyncOptions options = null)
        {
            options = options == null?new AsyncOptions():options;
            var marshaller = new GetObjectTaggingRequestMarshaller();
            var unmarshaller = GetObjectTaggingResponseUnmarshaller.Instance;
            Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;
            if(callback !=null )
                callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { 
                    AmazonServiceResult<GetObjectTaggingRequest,GetObjectTaggingResponse> responseObject 
                            = new AmazonServiceResult<GetObjectTaggingRequest,GetObjectTaggingResponse>((GetObjectTaggingRequest)req, (GetObjectTaggingResponse)res, ex , ao.State);    
                        callback(responseObject); 
                };
            BeginInvoke<GetObjectTaggingRequest>(request, marshaller, unmarshaller, options, callbackHelper);
        }

Same methods

AmazonS3Client::GetObjectTaggingAsync ( GetObjectTaggingRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonS3Client