public AmazonS3BlobReference(string id) { if (string.IsNullOrWhiteSpace(id)) { throw new ArgumentNullException(nameof(id)); } _bucketKeyReference = FromId(id); }
public AmazonS3BlobReference(string bucket, string key) { if (string.IsNullOrWhiteSpace(bucket)) { throw new ArgumentNullException(nameof(bucket)); } if (string.IsNullOrWhiteSpace(key)) { throw new ArgumentNullException(nameof(key)); } _bucketKeyReference = new BucketKey(bucket, key); }
private static string Format(BucketKey key) { return(string.Join("|", key.Tags.Select(x => $"{x.Key}:{x.Value}"))); }
public async Task <dynamic> CreateBucket([FromBody] CreateBucketModel createBucketModel) { BucketKey bucketKey = mapper.Map <BucketKey>(createBucketModel); return(await _ossServiceAdapter.CreateTask(bucketKey)); }