Skip to content

Commit

Permalink
Merge pull request #119 from dotnet/main
Browse files Browse the repository at this point in the history
✅ Merge `main` into `live`
  • Loading branch information
IEvangelist authored Dec 2, 2023
2 parents 7673ad8 + da35610 commit 1abc9c5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
8 changes: 0 additions & 8 deletions docs/storage/azure-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ When the _AspireStorage_ project starts, it will create a `fileuploads` containe

:::zone-end

In the _appsettings.json_ file of the _AspireStorage_ project, add the corresponding connection information:

:::code language="json" source="snippets/tutorial/AspireStorage/AspireStorage/appsettings.json" highlight="9-12":::

## Add the .NET Aspire component to the Worker Service

The worker service handles pulling messages off of the Azure Storage queue for processing. Add the [.NET Aspire Azure Queue Storage component](azure-storage-queues-component.md) component package to your _AspireStorage.Worker_ app:
Expand All @@ -163,10 +159,6 @@ This method handles the following tasks:
- Register a <xref:Azure.Storage.Queues.QueueServiceClient> with the DI container for connecting to Azure Storage Queues.
- Automatically enable corresponding health checks, logging, and telemetry for the respective services.

In the _appsettings.json_ file of the _AspireStorage.Worker_ project, add the corresponding connection string information:

:::code language="json" source="snippets/tutorial/AspireStorage/AspireStorage.Worker/appsettings.json" highlight="8-10":::

## Create the form

The app requires a form for the user to be able to submit support ticket information and upload an attachment. The app uploads the attached file on the `Document` (<xref:Microsoft.AspNetCore.Http.IFormFile>) property to Azure Blob Storage using the injected <xref:Azure.Storage.Blobs.BlobServiceClient>. The <xref:Azure.Storage.Queues.QueueServiceClient> sends a message composed of the `Title` and `Description` to the Azure Storage Queue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,5 @@
"Default": "Information",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ConnectionStrings": {
"QueueConnection": "https://{account_name}.queue.core.windows.net/"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"BlobConnection": "https://{account_name}.blob.core.windows.net/",
"QueueConnection": "https://{account_name}.queue.core.windows.net/"
}
"AllowedHosts": "*"
}

0 comments on commit 1abc9c5

Please sign in to comment.