예제 #1
0
        protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.SetKebabCaseEndpointNameFormatter();

            configurator.AddConsumersFromNamespaceContaining <CrunchTheNumbersConsumer>();

            configurator.AddServiceClient();

            configurator.AddRequestClient <CrunchTheNumbers>();

            configurator.AddBus(provider => BusControl);
        }
예제 #2
0
        protected void ConfigureRegistration(IBusRegistrationConfigurator configurator)
        {
            configurator.SetKebabCaseEndpointNameFormatter();

            configurator.AddConsumersFromNamespaceContaining <SubmitOrderConsumer>();

            configurator.AddServiceClient();

            configurator.AddRequestClient <SubmitOrder>();
            configurator.AddRequestClient <AuthorizeOrder>();

            configurator.AddBus(provider => BusControl);
        }