Skip to content

Commit

Permalink
Fix typo on Table Storage
Browse files Browse the repository at this point in the history
- Improve variable consistancy among blobs, queues and tables
  • Loading branch information
justinyoo committed Nov 22, 2023
1 parent cddf1a4 commit 88576d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/storage/azure-storage-queues-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ builder.AddAzureQueueService(
In your orchestrator project, add a Storage Queue connection and consume the connection using the following methods, such as <xref:Aspire.Hosting.AzureResourceExtensions.AddAzureStorage%2A>:

```csharp
var queue = builder.AddAzureStorage("storage")
.AddQueues("queue");
var queues = builder.AddAzureStorage("storage")
.AddQueues("queues");

var exampleProject = builder.AddProject<Projects.ExampleProject>()
.WithReference(queue);
.WithReference(queues);
```

The <xref:Aspire.Hosting.AzureResourceExtensions.AddQueues%2A> method will read connection information from the AppHost's configuration (for example, from "user secrets") under the `ConnectionStrings:queue` config key. The <xref:Aspire.Hosting.ResourceBuilderExtensions.WithReference%2A> method passes that connection information into a connection string named queue in the `ExampleProject` project. In the _Program.cs_ file of `ExampleProject`, the connection can be consumed using:
Expand Down
5 changes: 3 additions & 2 deletions docs/storage/azure-storage-tables-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ In your orchestrator project, register the Azure Table Storage component and con

```csharp
// Service registration
var tableStorage = builder.AddAzureTableService("tables");
var tables = builder.AddAzureStorage("storage")
.AddTables("tables");

// Service consumption
Builder.AddProject<MyApp.ExampleProject>()
.WithReference(tableStorage)
.WithReference(tables)
```

For more information, see <xref:Aspire.Hosting.ResourceBuilderExtensions.WithReference%2A>.
Expand Down

0 comments on commit 88576d1

Please sign in to comment.