SzymonPobiega / NServiceBus.Connector.SqlServer

SQL Server connector for NServiceBus
MIT License
4 stars 1 forks source link

Opt-out of queues in connected transport? #2

Open KatoStoelen opened 4 years ago

KatoStoelen commented 4 years ago

My scenario is similar to what is discussed here.

In our ASP.NET Core hosts we have send-only endpoints, and in cases where we need to perform database write operations in combination with message sending (via Azure Service Bus) I was planning to use this package to provide an Outbox-like feature.

When I start the connector (without any fancy configuration, atleast) it requires queues to be created in the connected transport (Azure Service Bus). Seeing as these endpoints are send-only, is there a way to configure the connector to not require queues to exist in the connected transport?

KatoStoelen commented 4 years ago

Seems like interfaces in NServiceBus.Router are always using send & receive raw endpoints (onMessage is always set):

https://github.com/SzymonPobiega/NServiceBus.Router/blob/49152c629715deb90f47bb07a94f38ed937c520f/src/NServiceBus.Router/Interface.cs#L32

so, this is probably not possible at the moment.