I got an interface called IStartablethat is implemented by several concretes. All are registered on UnityContainer, using RegisterTypewithout a name.
I am trying to achieve:
_container.ResolveAll<IStartable>().ForEach(startable => startable.Start());
_container.ResolveAll<IStartable>().ForEach(startable => startable.Stop());
How can I achieve this without naming all registrations?
source
share