public RequestDispatchingProxy(IMediator mediator, IBus bus, IBusSettings busSettings, IBusEndpointMapFactory exceptionalBusEndpointMapFactory) { Mediator = mediator; Bus = bus; RegisterDispatcher(new NsbRequestDispatcher(bus, busSettings, exceptionalBusEndpointMapFactory)); }
public NsbRequestDispatcher(IBus bus, IBusSettings busSettings, IBusEndpointMapFactory exceptionalBusEndpointMapFactory = null) { Bus = bus; BusSettings = busSettings; exceptionalBusEndpointMapFactory = exceptionalBusEndpointMapFactory ?? new DefaultBusEndpointMapFactory(); ExceptionalBusEndpointMaps = exceptionalBusEndpointMapFactory.GetMaps(); }