public static IRecieveOnlyBus Initialise(IBusConfigutration configuration, MessageRouteTable routes = null) { routes = routes ?? new MessageRouteTable(); var bus = new RecieveOnlyBus(configuration, routes) { container = new Container(x => { x.For <ISendOnlyBus>().Use(new SendOnlyBus(configuration, routes)).Singleton(); }) }; return(bus); }
private RecieveOnlyBus(IBusConfigutration configuration, MessageRouteTable routes = null) { this.configuration = configuration; this.routes = routes ?? new MessageRouteTable(); }
public SendOnlyBus(IBusConfigutration configuration, MessageRouteTable routes = null) { this.configuration = configuration; this.routes = routes ?? new MessageRouteTable(); }