protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <InitialConsumer>();
            configurator.AddConsumer <SubsequentConsumer>();

            configurator.AddBus(context => BusControl);
        }
        protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <InitialConsumer>();
            configurator.AddConsumer <SubsequentConsumer>();

            configurator.AddBus(context => BusControl);

            configurator.AddRequestClient <InitialRequest>(InputQueueAddress);
            configurator.AddRequestClient(typeof(SubsequentRequest), SubsequentQueueAddress);
        }
Ejemplo n.º 3
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>();
 }
Ejemplo n.º 4
0
        protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <ConsumerA>(typeof(ConsumerADefinition))
            .Endpoint(x => x.Name = "shared");

            configurator.AddConsumer <ConsumerB>(typeof(ConsumerBDefinition))
            .Endpoint(x => x.Name = "shared");

            configurator.AddConsumer <ConsumerC>(typeof(ConsumerCDefinition));

            configurator.AddBus(provider => BusControl);
        }
Ejemplo n.º 5
0
        protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <DependentBatchConsumer>(x =>
                                                              x.Options <BatchOptions>(b => b.SetTimeLimit(200).SetMessageLimit(4)));

            configurator.AddBus(provider => BusControl);
        }
        protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <ActivityRequestConsumer>();
            configurator.AddExecuteActivity <SendRequestActivity, SendRequestArguments>();

            configurator.AddBus(context => BusControl);

            configurator.AddRequestClient <ActivityRequest>(RequestQueueAddress);
        }
Ejemplo n.º 7
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);
     });
 }
Ejemplo n.º 8
0
        protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.AddConsumer <PlainConsumer>();

            configurator.AddConsumer <ByDefinitionConsumer, ByDefinitionConsumerDefinition>();

            configurator.AddConsumer <ByEndpointConsumer>()
            .Endpoint(x => x.Name = "by-endpoint");

            configurator.AddConsumer <ByEndpointDefinitionConsumer, ByEndpointDefinitionConsumerDefinition>()
            .Endpoint(x => x.Name = "by_endpoint_definition");

            configurator.AddConsumer <ByEndpointNameConsumer, ByEndpointNameConsumerDefinition>()
            .Endpoint(x => x.Name = "by_endpoint_name");

            configurator.AddConsumer <ByEndpointOverrideConsumer, ByEndpointOverrideConsumerDefinition>()
            .Endpoint(x => x.Name = "by_endpoint_override");

            configurator.AddBus(provider => BusControl);
        }
Ejemplo n.º 9
0
 protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
 {
     configurator.AddConsumer <SimplerConsumer>();
     configurator.AddBus(provider => BusControl);
 }