Some code I'm updating uses Unity which is a bit new to me, although I get the general principles.
One interface is registered like this:
_container.RegisterType<ISomething, Something>(
new ContainerControlledLifetimeManager(),
new InjectionConstructor(
new ResolvedParameter<ITypeA>(),
new ResolvedParameter<ITypeB>(),
_container.Resolve<ITypeC>()
)
);
I'm confused the distinction between new ResolvedParameter<ITypeB>()
and _container.Resolve<ITypeC>()
- can someone make it clearer what the difference is and when each might be used/preferred?