I have looked around and can't figure this out. I am trying to
configure this :
public class DefaultCreateMaterialsTestCommand<T, TFactory> :
IDefaultCreateMaterialsTestCommand<T, TFactory>
    {
        public DefaultCreateMaterialsTestCommand(ISampleRepository
sampleRepository,IPersist<T>
testRepository,IMaterialsTestBuilder<TFactory> testBuilder)
        {
                <snip>


--every dependency in this ctor resolves on its own.
--But this fails:
kernel.Resolve<IDefaultCreateMaterialsTestCommand<MyClass,MyFactory>>
();

It complains that there are services waiting to be registered, but is
blank.
The only slightly exotic thing I have is this..note that the generic
parameter is the service passed into the ctor:

public class MaterialsTestBuilder<T> : IMaterialsTestBuilder<T> {
   public MaterialsTestBuilderBuilder(T testFactory) {

/* etc*/
}

I am not sure what I am doing wrong here. Is it illegal to use the
service type of an generic parameter as the type of ctor dependency in
the same object?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to