Merge pull request #3233 from halspang/v1.10

Add call to MapSubscribeHandlers for .NET pubsub
This commit is contained in:
Hannah Hunter 2023-03-06 17:51:31 -06:00 committed by GitHub
commit 30f0094ca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -212,6 +212,15 @@ app.MapPost("/checkout", [Topic("pubsub", "orders")] (Order order) => {
});
```
Both of the handlers defined above also need to be mapped to configure the `dapr/subscribe` endpoint. This is done in the application startup code while defining endpoints.
```csharp
app.UseEndpoints(endpoints =>
{
endpoints.MapSubscribeHandler();
}
```
{{% /codetab %}}
{{% codetab %}}