@@ -16,7 +16,7 @@ In .NET Aspire 9.4, several Azure Storage APIs were renamed and refactored for c
16
16
17
17
## Previous behavior
18
18
19
- Previously, you used methods like ` AddBlobs ` , ` AddBlobContainer ` , ` AddQueues ` , and ` AddTables ` to add Azure Storage resources.
19
+ Previously, you used ` AddBlobs ` to call ` AddBlobContainer ` to add a blob container:
20
20
21
21
** Hosting integration example:**
22
22
@@ -27,9 +27,6 @@ var storage = builder.AddAzureStorage("storage");
27
27
28
28
var blobs = storage .AddBlobs (" blobs" );
29
29
var blobContainer = blobs .AddBlobContainer (" container" );
30
-
31
- var queues = storage .AddQueues (" queues" );
32
- var tables = storage .AddTables (" tables" );
33
30
```
34
31
35
32
Client registration methods also used names like ` AddAzureBlobClient ` , ` AddAzureQueueClient ` , and ` AddAzureTableClient ` .
@@ -46,22 +43,14 @@ builder.AddAzureTableClient("storage");
46
43
47
44
## New behavior
48
45
49
- Now, the API uses more explicit names that match Azure resource types. For example, use ` AddBlobService ` , ` AddBlobContainer ` , ` AddQueueService ` , ` AddQueue ` , ` AddTableService ` , and ` AddTable ` .
46
+ Now, ` AddBlobContainer ` is a top level call on the storage resource.
50
47
51
48
** Hosting integration example:**
52
49
53
50
``` csharp
54
51
var builder = DistributedApplication .CreateBuilder (args );
55
52
56
- var storage = builder .AddAzureStorage (" storage" );
57
-
58
- var blobs = storage .AddBlobService (" blobService" );
59
- blobs .AddBlobContainer (" container" );
60
-
61
- var queues = storage .AddQueueService (" queueService" );
62
- queues .AddQueue (" queue" );
63
-
64
- var tables = storage .AddTableService (" tableService" );
53
+ var blobContainer = storage .AddBlobContainer (" container" );
65
54
```
66
55
67
56
Client registration methods now use names like ` AddAzureBlobServiceClient ` , ` AddAzureQueueServiceClient ` , and ` AddAzureTableServiceClient ` .
@@ -82,11 +71,7 @@ The following table summarizes the key hosting integration API changes:
82
71
83
72
| Obsolete API | New API | Notes |
84
73
| --| --| --|
85
- | ` AddBlobs ` | ` AddBlobService ` | — |
86
74
| ` AddBlobContainer ` | ` AddBlobContainer ` | New API uses ` IResourceBuilder<AzureStorageResource> ` overload. |
87
- | ` AddTables ` | ` AddTableService ` | — |
88
- | ` AddQueues ` | ` AddQueueService ` | — |
89
- | N/A | ` AddQueue ` | — |
90
75
91
76
The following table summarizes the key client registration API changes:
92
77
@@ -112,10 +97,7 @@ The new API names provide consistency with Azure client libraries and resource g
112
97
113
98
## Affected APIs
114
99
115
- - ` AddBlobs `
116
100
- ` AddBlobContainer `
117
- - ` AddTables `
118
- - ` AddQueues `
119
101
- ` AddAzureBlobClient `
120
102
- ` AddAzureQueueClient `
121
103
- ` AddAzureTableClient `
0 commit comments