1- using Google . Cloud . Storage . V1 ;
2- using ManagedCode . Storage . Google . Extensions ;
3- using ManagedCode . Storage . Google . Options ;
1+ using ManagedCode . Storage . Azure . Extensions ;
2+ using ManagedCode . Storage . Azure . Options ;
43using Microsoft . Extensions . DependencyInjection ;
54
65// ReSharper disable MethodHasAsyncOverload
@@ -14,32 +13,16 @@ public static ServiceProvider ConfigureServices(string connectionString)
1413
1514 var services = new ServiceCollection ( ) ;
1615
17- services . AddGCPStorageAsDefault ( opt =>
16+ services . AddAzureStorageAsDefault ( opt =>
1817 {
19- opt . BucketOptions = new BucketOptions
20- {
21- ProjectId = "api-project-0000000000000" ,
22- Bucket = "managed-code-bucket"
23- } ;
24- opt . StorageClientBuilder = new StorageClientBuilder
25- {
26- UnauthenticatedAccess = true ,
27- BaseUri = connectionString
28- } ;
18+ opt . Container = "managed-code-bucket" ;
19+ opt . ConnectionString = connectionString ;
2920 } ) ;
3021
31- services . AddGCPStorage ( new GCPStorageOptions
22+ services . AddAzureStorage ( new AzureStorageOptions
3223 {
33- BucketOptions = new BucketOptions
34- {
35- ProjectId = "api-project-0000000000000" ,
36- Bucket = "managed-code-bucket"
37- } ,
38- StorageClientBuilder = new StorageClientBuilder
39- {
40- UnauthenticatedAccess = true ,
41- BaseUri = connectionString
42- }
24+ Container = "managed-code-bucket" ,
25+ ConnectionString = connectionString
4326 } ) ;
4427 return services . BuildServiceProvider ( ) ;
4528 }
0 commit comments