Ok great, but if i register TestData like the above, will it be able
to be injected into non-MEF dependencies as well?
Thanks,
Shannon
On Nov 26, 8:33 am, Nicholas Blumhardt <
nicholas.blumha...@gmail.com>
wrote:
> Hi Shandem,
>
> You need to mark the TestData type:
>
> builder.RegisterType<TestData>()
> .Exported(x => x.As<TestData>());
>
> There are differences between the way MEF and Autofac handle service
> contracts that make this necessary for a correct integration. Given that the
> exported types form the "public" extensibility API of your application, it
> is probably not a bad idea to select them explicitly anyway.
>
> Cheers,
> Nick
>
> >
autofac+u...@googlegroups.com<
autofac%2Bunsu...@googlegroups.com>
> > .