Ejemplo n.º 1
0
        public void Register(IIoCManager ioCManager, Assembly assembly)
        {
            var queryInterfaceImpls = FindQueryEntry(assembly);

            queryInterfaceImpls.ForEach(p => ioCManager.AddPerDependency(p.Interface, p.Impl));
            var repositoryInterfaceImpls = FindRepository(assembly);

            repositoryInterfaceImpls.ForEach(p => ioCManager.AddPerDependency(p.Interface, p.Impl));
        }
        public void Register(IIoCManager _ioCManager, Assembly assembly)
        {
            var commandHandlerImpls = FindCommandHandler(assembly);

            commandHandlerImpls.ForEach(p => _ioCManager.AddPerDependency(p.Interface, p.Impl));

            var eventHandlerImpls = FindEventHandler(assembly);

            eventHandlerImpls.ForEach(p => _ioCManager.AddPerDependency(p.Interface, p.Impl));

            var domainServiceImpls = FindService(assembly);

            domainServiceImpls.ForEach(p => _ioCManager.AddPerDependency(p.Interface, p.Impl));
        }
        public void Register(IIoCManager ioCManager, Assembly assembly)
        {
            var containerImpls = FindController(assembly);

            containerImpls.ForEach(p => ioCManager.AddPerDependency(p.Interface, p.Impl));
        }