Пример #1
0
 public static BusBuilder UseContainer(this BusBuilder builder, IWindsorContainer container)
 {
     builder.ContainerInjector = config =>
     {
         config.CastleWindsorBuilder(container);
     };
     return(builder);
 }
Пример #2
0
        public static BusBuilder Msmq(this BusBuilder builder, string inputQueue, string errorQueue)
        {
            builder.MsmqSettingsInjector = config =>
            {
                config.CustomConfigurationSource(new BusZeroConfig(new BusConfig
                {
                    ErrorQueue = errorQueue,
                    InputQueue = inputQueue
                }));

                config.MsmqTransport().IsTransactional(true);
            };

            return(builder);
        }