Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo on Table Storage Component #85

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading