SzymonPobiega / NServiceBus.Router

Cross-transport, cross-site and possibly cross-cloud router component for NServiceBus
MIT License
5 stars 10 forks source link

Enable on SendOnly endpoints #8

Closed dmarckmann closed 5 years ago

dmarckmann commented 5 years ago

Exception "LocalAddress isn't available since this endpoint is configured to run in send-only mode." is thrown.

Is it possible to enable sendonly endpoints?

My configration looks like this:

busConfiguration.SendOnly();
var transport = busConfiguration.UseTransport<RabbitMQTransport>()
    .ConnectionString(ConfigurationManager.ConnectionStrings["NServiceBus/Transport"].ConnectionString)
    .TimeToWaitBeforeTriggeringCircuitBreaker(TimeSpan.FromMinutes(10))
    .UseConventionalRoutingTopology();
var routing = transport.Routing();

var routedRouting = routing.ConnectToRouter("Transport.Bridge");
routedRouting.RouteToEndpoint(typeof(AddActionableCommand), "Actionables.Service");

Thx

SzymonPobiega commented 5 years ago

Hi @dmarckmann

I merged your PR. :bow: ❤️ . It has been released as 3.2.0.