public Task <string> GetBucketLocationAsync(string bucketName) { if (string.IsNullOrEmpty(bucketName)) { throw new ArgumentNullException(nameof(bucketName)); } var result = _client.GetBucketLocation(bucketName); if (result == null) { return(null); } return(Task.FromResult(result.Location)); }