Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mizrael authored Jul 11, 2024
1 parent 932639a commit e081282
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,14 @@ Subscriptions can be configured directly in the `host.json` file:

The library will automatically create the queues if not existing, using this naming convention: `topic-subscription` , lowercase:

<img width="500" alt="image" src="https://github.com/mizrael/AzureStorageTopics/assets/1432872/2853a03d-d893-4248-b2c5-1ed9eeaa1272">

![Queues](https://github.com/mizrael/AzureStorageTopics/assets/1432872/2853a03d-d893-4248-b2c5-1ed9eeaa1272)

The setting containing the connection string to the Storage Account can be specified by providing the `ConnectionSettingName` property to the `StorageTopic` attribute:
```csharp
[FunctionName(nameof(SendToTopic))]
public static async Task<IActionResult> SendToTopic(
[HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
[StorageTopic("MyTopic", ConnectionSettingName="")] IAsyncCollector<string> outputTopic)
[StorageTopic("MyTopic", ConnectionSettingName="AzureWebJobsStorage")] IAsyncCollector<string> outputTopic)
```
The default value is `AzureWebJobsStorage`.

Expand Down

0 comments on commit e081282

Please sign in to comment.