protected static void ConfigureTwo(IBusRegistrationConfigurator configurator) { configurator.AddConsumer <Consumer2>(); configurator.UsingInMemory((context, cfg) => { cfg.Host(new Uri("loopback://bus-two/")); cfg.ConfigureEndpoints(context); cfg.UseHealthCheck(context); }); }
protected static void ConfigureOne(IBusRegistrationConfigurator configurator) { configurator.AddConsumer <Consumer1>(); configurator.AddConsumer <OneRequestConsumer>(); configurator.UsingInMemory((context, cfg) => { cfg.Host(new Uri("loopback://bus-one/")); cfg.ConfigureEndpoints(context); }); configurator.AddRequestClient <OneRequest>(); }