Example #1
0
        public RequestDispatchingProxy(IMediator mediator, IBus bus, IBusSettings busSettings,
                                       IBusEndpointMapFactory exceptionalBusEndpointMapFactory)
        {
            Mediator = mediator;
            Bus      = bus;

            RegisterDispatcher(new NsbRequestDispatcher(bus, busSettings, exceptionalBusEndpointMapFactory));
        }
Example #2
0
        public NsbRequestDispatcher(IBus bus, IBusSettings busSettings,
                                    IBusEndpointMapFactory exceptionalBusEndpointMapFactory = null)
        {
            Bus         = bus;
            BusSettings = busSettings;

            exceptionalBusEndpointMapFactory = exceptionalBusEndpointMapFactory ?? new DefaultBusEndpointMapFactory();
            ExceptionalBusEndpointMaps       = exceptionalBusEndpointMapFactory.GetMaps();
        }