File tree Expand file tree Collapse file tree
src/NuGetGallery.Core/Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
34using System . Threading . Tasks ;
45using Microsoft . WindowsAzure . Storage . Blob ;
56
@@ -37,5 +38,15 @@ public Task<bool> ExistsAsync()
3738 {
3839 return _blobContainer . ExistsAsync ( ) ;
3940 }
41+
42+ public async Task < bool > DeleteIfExistsAsync ( )
43+ {
44+ return await _blobContainer . DeleteIfExistsAsync ( ) ;
45+ }
46+
47+ public async Task CreateAsync ( )
48+ {
49+ await _blobContainer . CreateAsync ( ) ;
50+ }
4051 }
4152}
Original file line number Diff line number Diff line change 11// Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
34using System . Threading . Tasks ;
45using Microsoft . WindowsAzure . Storage . Blob ;
56
@@ -11,5 +12,7 @@ public interface ICloudBlobContainer
1112 Task SetPermissionsAsync ( BlobContainerPermissions permissions ) ;
1213 ISimpleCloudBlob GetBlobReference ( string blobAddressUri ) ;
1314 Task < bool > ExistsAsync ( ) ;
15+ Task < bool > DeleteIfExistsAsync ( ) ;
16+ Task CreateAsync ( ) ;
1417 }
1518}
You can’t perform that action at this time.
0 commit comments