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

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

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