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

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

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

Same methods

AmazonS3Client::PutObjectTaggingAsync ( PutObjectTaggingRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonS3Client