예제 #1
0
 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);
     });
 }
예제 #2
0
 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>();
 }