rebus-org / Rebus

:bus: Simple and lean service bus implementation for .NET
https://mookid.dk/category/rebus
Other
2.27k stars 354 forks source link

Error while injecting ITopicNameConvention #868

Closed Efp95 closed 4 years ago

Efp95 commented 4 years ago

Hi,

I'm using Rebus 6.1.0 and Rebus.AzureServiceBus 7.1.0

I'm about to upgrade the version from Rebus 5.3.1 and Rebus.AzureServiceBus 6.0.7

While attempting to override the ITopicNameConvention registration we got the following message from here

This is how we used to do it

.Transport(t =>
{
    t.OtherService<ITopicNameConvention>().Register(_ => new WorkflowTopicNameConvention(workflowId));
    t.UseAzureServiceBus(serviceBus, rebus.InputQueue(workflowId));
})

FYI: Also, I tried putting the piece of code within the .Options section

Efp95 commented 4 years ago

Update: found out the solution from here: https://github.com/rebus-org/Rebus/issues/692

mookid8000 commented 4 years ago

Perfect 🙂