I have this situation:
public IList<IOrderRule> ResolveAll()
{
return kernel.ResolveAll<IOrderRule>();
}
public IDictionary<string, IOrderRule> ResolveAllWithKey()
{
...?
}
ISubResolver only has a Resolve() for a single item. How can I come around
this?
On Fri, Oct 24, 2008 at 10:19 PM, Ayende Rahien <[EMAIL PROTECTED]> wrote:
>
> You can use a ISubDependencyResolver
>
> On 10/25/08, Jan Limpens <[EMAIL PROTECTED]> wrote:
> > If I register a component like so
> >
> > <component id="xxx" type="sometype" service="someservice">
> > <parameters>
> > <description>bla</description>
> > </parameters>
> > </component>
> >
> > and I also want to use the component's id as a parameter without having
> to
> > repeat myself, how could I do that?
> >
> > public class sometype : someservice {
> > public sometype(string id, string description){
> > ...
> > }
> > }
> >
> > --
> > Jan
> > ___________________
> > [EMAIL PROTECTED]
> > www.limpens.com
> > +55 (11) 3082-1087
> > +55 (11) 3097-8339
> >
> > >
> >
>
> >
>
--
Jan
___________________
[EMAIL PROTECTED]
www.limpens.com
+55 (11) 3082-1087
+55 (11) 3097-8339
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---