Esempio n. 1
0
        public void RegisterCommandBus(params Assembly[] assemblies)
        {
            var eventHandlerDependencyRegister = new CommandBusDependencyRegister(UnityContainer, assemblies);

            eventHandlerDependencyRegister.Register();
        }
Esempio n. 2
0
        public void RegisterCommandBus <T>() where T : ICommandBus
        {
            var commandBusDependencyRegister = new CommandBusDependencyRegister(UnityContainer);

            commandBusDependencyRegister.Register(typeof(ICommandBus), typeof(T));
        }