Lets say I have a class that looks like this:
public class MyClass: MyInterface
{
private int _id;
private string _name;
public MyClass(int id, string name)
{
_id = id;
_name = name;
}
}
I'm loading the class into a WindsorContainer along with every other
implementation of MyInterface like so:
container.Register(AllTypes.Of<MyInterface>.FromAssembly(myAssembly));
How do I:
A. Ensure the correct implementation of MyInterface is resolved
B. Return a new instance of MyClass each time resolve is called
C. Supply the container with default values for the MyClass
constructor
I would like to accomplish these using the fluent api if possible but
will fall back to xml configuration if there is no other alternative.
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.