예제 #1
0
        public async Task <S3Object> GetObjectAsync(GetObjectRequest request)
        {
            var response = await SendAsync2(request).ConfigureAwait(false);

            return(new S3Object(request.ObjectName, response));
        }
예제 #2
0
        public async Task <IBlob> GetAsync(string name)
        {
            var request = new GetObjectRequest(client.Region, bucketName, key: name);

            return(await client.GetObjectAsync(request).ConfigureAwait(false));
        }
예제 #3
0
        public async Task <S3Object> GetObjectAsync(GetObjectRequest request, CancellationToken cancelationToken = default)
        {
            var response = await SendAsync2(request, request.CompletionOption, cancelationToken).ConfigureAwait(false);

            return(new S3Object(request.ObjectName !, response));
        }