Particular / NServiceBus

Build, version, and monitor better microservices with the most powerful service platform for .NET
https://particular.net/nservicebus/
Other
2.07k stars 647 forks source link

Make AutoSubscribe throw when missing publisher route #5195

Open timbussmann opened 6 years ago

timbussmann commented 6 years ago

With 7.1 and 6.5 the AutoSubscribe behavior was changed to log an error when a event type cannot be subscribed to (due to a missing RegisterPublisher configuration). This only affects transports using message driven pub/sub.

There were goals to make AutoSubscribe throw an exception instead of logging an error, similar to how Subscribe also throws an exception when subscribing manually to an event type with a missing publisher address. This idea was discarded in order to not introduce breaking behavior in a minor version. This idea should be revisited on the next major version to help users to avoid missing publisher configurations (and therefore missing events).

SeanFeldman commented 5 years ago

This only affects transports using message driven pub/sub.

It also affects the transports with native pub/sub. Azure Service Bus is affected as well. https://github.com/Particular/NServiceBus.Transport.AzureServiceBus/issues/55