-
Notifications
You must be signed in to change notification settings - Fork 361
Open
Labels
kind/bugSomething isn't workingSomething isn't working
Description
The Dapr .NET SDK currently does not support creating multiple subscriptions to the same topic within a single application using programmatic subscriptions (via the /dapr/subscribe endpoint). This limitation exists because:
- Subscriptions are uniquely identified only by
pubsubName + topic- There is no subscription name field - Multiple handlers for the same topic are not supported - Only the first endpoint is registered, others are ignored with an error
- The limitation only affects programmatic subscriptions - Declarative subscriptions (YAML) support
metadata.namebut programmatic subscriptions do not
// ❌ Only the first handler would be registered
[Topic("pubsub", "deposit")]
[HttpPost("deposit/accounting")]
public async Task<ActionResult> DepositAccounting(Transaction t) { }
[Topic("pubsub", "deposit")] // ❌ Ignored with error
[HttpPost("deposit/notifications")]
public async Task<ActionResult> DepositNotifications(Transaction t) { }Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working