From 88576d109fe318d4f716de99839ae59cb7a208a5 Mon Sep 17 00:00:00 2001 From: Justin Yoo Date: Wed, 22 Nov 2023 03:22:51 +0000 Subject: [PATCH] Fix typo on Table Storage - Improve variable consistancy among blobs, queues and tables --- docs/storage/azure-storage-queues-component.md | 6 +++--- docs/storage/azure-storage-tables-component.md | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/storage/azure-storage-queues-component.md b/docs/storage/azure-storage-queues-component.md index 3ab4018033..7b6ea54229 100644 --- a/docs/storage/azure-storage-queues-component.md +++ b/docs/storage/azure-storage-queues-component.md @@ -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 : ```csharp -var queue = builder.AddAzureStorage("storage") - .AddQueues("queue"); +var queues = builder.AddAzureStorage("storage") + .AddQueues("queues"); var exampleProject = builder.AddProject() - .WithReference(queue); + .WithReference(queues); ``` The method will read connection information from the AppHost's configuration (for example, from "user secrets") under the `ConnectionStrings:queue` config key. The 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: diff --git a/docs/storage/azure-storage-tables-component.md b/docs/storage/azure-storage-tables-component.md index 7b7ca137e4..3184713a67 100644 --- a/docs/storage/azure-storage-tables-component.md +++ b/docs/storage/azure-storage-tables-component.md @@ -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() - .WithReference(tableStorage) + .WithReference(tables) ``` For more information, see .