Esempio n. 1
0
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType <Context>().InstancePerLifetimeScope();

            var busBuilder = new BusBuilder();

            busBuilder.RegisterGlobalHandler <TransactionHandler>();
            busBuilder.RegisterCommandHandler <FeatureCommand, FeatureCommandHandler>();
            busBuilder.RegisterCancelableCommandHandler <CancelableCommand, CancelableCommandHandler>();

            builder.RegisterMicroBus(busBuilder);
        }