is there a way using the Unity framework to pass an integer as an argument into the constructor or a resolved object?
Pseudo code..
IService svc = Container.Resolve<ConcreteService>()
in this case Concrete service will be something like this…
public class ConcreteService
{
public ConcreteService(int val)
{
}
}
Also I need to do this in xml configuration as opposed to doing it in code.
Thanks in advance.
Hope I understood you right
Now let’s configure unity.
Equvivalent configuration for “for42” is
Unity 1.4
Unity 2.0
It’s much the same but without redundant typeConfig node