--
You received this message because you are subscribed to the Google Groups "Autofac" group.
To post to this group, send email to aut...@googlegroups.com.
To unsubscribe from this group, send email to autofac+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/autofac?hl=en.
I decided to take a look at this and wrote a blog post about it. It
covers handling the scenario you described.
http://alexmg.com/post/2009/12/19/Registering-open-generic-interface-types-in-Autofac.aspx
Cheers,
Alex.
On Dec 17, 7:25 am, Nicholas Blumhardt <nicholas.blumha...@gmail.com>
wrote:
> Hi Keith,
>
> We don't have anything exactly equivalent, but Autofac2's
> RegisterAssemblyTypes() could be used as a basis for implementing it without
> too much work.
>
> Cheers,
> Nick
>
> 2009/12/16 Keith <krouss...@gmail.com>
>
> > Is it possible to register a generic interface so that it will
> > automatically wire up to its closing types. For example, in
> > StructureMap, you can do this:
>
> > Scan(x =>
> > {
> > x.ConnectImplementationsToTypesClosing(typeof
> > (IScreen<>));
> > });
>
> > This basically scans the assembly and wires up all closed types to the
> > Open Generic so if I have this:
>
> > public class TestScreen : IScreen<Test>
>
> > it would automatically give me TestScreen when I request IScreen<Test>
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Autofac" group.
> > To post to this group, send email to aut...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > autofac+u...@googlegroups.com<autofac%2Bunsu...@googlegroups.com>