public GetACLAsync ( Amazon.S3.Model.GetACLRequest request, System cancellationToken = default(CancellationToken) ) : Task |
||
request | Amazon.S3.Model.GetACLRequest | Container for the necessary parameters to execute the GetACL operation. |
cancellationToken | System | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// |
return | Task |
public Task<GetACLResponse> GetACLAsync(GetACLRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new GetACLRequestMarshaller();
var unmarshaller = GetACLResponseUnmarshaller.Instance;
return InvokeAsync<GetACLRequest,GetACLResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
AmazonS3Client::GetACLAsync ( string bucketName, System cancellationToken = default(CancellationToken) ) : Task |
|
AmazonS3Client::GetACLAsync ( Amazon.S3.Model.GetACLRequest request, GetACLResponse>.AmazonServiceCallback |
|
AmazonS3Client::GetACLAsync ( string bucketName, GetACLResponse>.AmazonServiceCallback |
public static GetACLResponse GetACLHelper(AmazonS3Client client, string bucketName, string key) { GetACLResponse r = null; Exception responseException = null; AutoResetEvent ars = new AutoResetEvent(false); client.GetACLAsync(new GetACLRequest() { BucketName = bucketName, Key = key }, (response) => { responseException = response.Exception; if (responseException == null) { r = response.Response; } ars.Set(); }, new AsyncOptions { ExecuteCallbackOnMainThread = false }); ars.WaitOne(); if (responseException != null) { throw responseException; } return r; }