3
나는 여러 구체에 의해 구현 된 IStartable
이라는 인터페이스를 가지고있다. 모두 UnityContainer
에 등록되어 있으며 이름이없는 RegisterType
입니다.이름을 사용하지 않고 모두 해결
내가 달성하기 위해 노력하고 있습니다 :
_container.ResolveAll<IStartable>().ForEach(startable => startable.Start());
//application lifetime
_container.ResolveAll<IStartable>().ForEach(startable => startable.Stop());
어떻게 달성 할 수있는 모든 등록 이름을하지 않고 그?