Does Light Inject allow you to pass parameters to constructor when you resolve? I\'d like to know if both these frameworks do what Unity\'s ResolverOverride or DependencyOve
In response to Liam's answer I would like to point out that there is a simpler way of doing this.
If you have the following situation:
public class Test : ITest
{
private IFoo _foo;
public Test(IFoo foo, string parameter)
{
_foo = foo;
....
}
}
You could write your ioc configuration as below
_container.Register();
_container.Register(
() => new Test(
_container.GetInstance(),
"MyValue"
)
);