I'd suggest doing

typeof(IRepository<MyType>).FullName

to see the correct one.

Besides that, you don't need to register Repository for second time, if you
already registered the generic one.

On Thu, Oct 30, 2008 at 10:45 PM, Shawn Hinsey <[EMAIL PROTECTED]> wrote:

>
> Using the sample from the docs,
>
> <component
>    id='int.repos.generic'
>    service='Namespace.IRepository`1[[System.Int32]], AssemblyName'
>    type='Namespace.Repository`1[[System.Int32]], AssemblyName' />
>
> What's the syntax here if the generic parameter (Int32) is in a
> different assembly from the type/service?
>
> I was thinking this,
>
> <component
>    id='int.repos.generic'
>    service='Namespace.IRepository`1[[MyType, MyAssembly]], AssemblyName'
>    type='Namespace.Repository`1[[MyType, MyAssembly]], AssemblyName' />
>
> This throws System.Configuration.ConfigurationErrorsException with:
> The type name MyGenericType`1[[MyGenericArgument, AssemblyTwo]],
> AssemblyOne could not be located
>
> It's totally possible that I have something else wrong, so I wanted a
> sanity check. Is this the correct syntax?
>
> >
>


-- 
Tuna Toksöz

Typos included to enhance the readers attention!

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