public async Task <OperationResult> CreateBlob(Stream payload, string key) { var endpoint = ToUri(key); var exist = await _bucketClient.ExistBlob(endpoint); if (exist) { return(new OperationResult(false, "Blob already exist", HttpStatusCode.BadRequest)); } return(await _bucketClient.PutBlob(payload, endpoint)); }
public Task <bool> ExistBlob(Uri key) { return(_bucketClient.ExistBlob(key)); }