I seem to be stuck. Is there a way to export Appli开发者_如何学Gocation.Current of a Silverlight project using MEF, so that when I load .XAP (my Silverlight component project) file I had access to th
I have configured container: public class MyBootstrapper : MefBootstrapper { protected override void ConfigureAggregateCatalog()
FooService.cs: public interface IFooService { int Foo(); } [Export(\"Foo1\", typeof(IFooService))] public class Foo1 : IFooService
I\'ve built a MEF container that creates a service. I build another MEF container with these services from the first container. The problem is those services get recomposed when being added to the sec
Can i write a class to use mef to import all types implementing a specific interface and then specify this interface at run time.(i know i need to tag the implementors 开发者_JAVA技巧with export)
I\'m using asp.net mvc3 with MEF + MEFContrib to load some services on my controllers. What\'s happening is that I can load the services - IEnumerable<IPublishService> publishers - with the [Imp
I have the following example code using MEF: public interface IFoo<T> {} public class Foo<T> : IFoo<T>
I would like to bind by type instead to the object instanced. What I have to do NOW : var catalog = new AssemblyCatalog(typeof(...).Assembly);
I am looking to see how Ioc/Di can simplify wiring the following classes I use often. Consider a library that has an abstract notion of an Entity and an interface for a data access object:
I have been reading the article: http://www.codeproject.com/KB/silverlight/MEFDynamicLoading.aspx which describes how it is possible to have XAPs dynamically downloaded using MEF.It states t开发者_高级