mirror of https://github.com/dapr/docs.git
Merge pull request #3233 from halspang/v1.10
Add call to MapSubscribeHandlers for .NET pubsub
This commit is contained in:
commit
30f0094ca0
|
@ -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 %}}
|
||||
|
|
Loading…
Reference in New Issue