diff --git a/Snippets/ASBS/ASBS_5/topology-options.json b/Snippets/ASBS/ASBS_5/topology-options.json index 620d92e8168..67743572c7c 100644 --- a/Snippets/ASBS/ASBS_5/topology-options.json +++ b/Snippets/ASBS/ASBS_5/topology-options.json @@ -9,6 +9,7 @@ }, "QueueNameToSubscriptionNameMap": { "Publisher": "PublisherSubscriptionName" - } + }, + "ThrowIfUnmappedEventTypes": false } # endcode topology-options diff --git a/Snippets/ASBS/ASBS_6/topology-options.json b/Snippets/ASBS/ASBS_6/topology-options.json index 620d92e8168..67743572c7c 100644 --- a/Snippets/ASBS/ASBS_6/topology-options.json +++ b/Snippets/ASBS/ASBS_6/topology-options.json @@ -9,6 +9,7 @@ }, "QueueNameToSubscriptionNameMap": { "Publisher": "PublisherSubscriptionName" - } + }, + "ThrowIfUnmappedEventTypes": false } # endcode topology-options diff --git a/transports/azure-service-bus/configuration.md b/transports/azure-service-bus/configuration.md index 3020782069d..c6fbc890694 100644 --- a/transports/azure-service-bus/configuration.md +++ b/transports/azure-service-bus/configuration.md @@ -3,6 +3,8 @@ title: Configuration summary: Explains the configuration options component: ASBS reviewed: 2025-03-21 +related: + - samples/azure-service-bus-netstandard/options --- ## Configuring an endpoint diff --git a/transports/azure-service-bus/configuration_entity-topology_asbs_[5,).partial.md b/transports/azure-service-bus/configuration_entity-topology_asbs_[5,).partial.md index 10b73449e04..fc6070fa7c7 100644 --- a/transports/azure-service-bus/configuration_entity-topology_asbs_[5,).partial.md +++ b/transports/azure-service-bus/configuration_entity-topology_asbs_[5,).partial.md @@ -22,6 +22,8 @@ The topology json document for the topic-per-event topology looks like: snippet: topology-options +If it is desired to enforce that each event type published has an explicit topic name mapping in `PublishedEventToTopicsMap` then `ThrowIfUnmappedEventTypes` can be set to `true`. This property defaults to `false`. + In order to support polymorphic event types, one event (base type) can be mapped to multiple topics (where the derived events are published): snippet: topology-options-inheritance