New Post: Resolving Open Generics with RegistrationBuilder
My open generic works fine when exported with an attribute, such as  [Export(typeof(IRepository<>))]  publicclassExampleRepository<T> : IRepository<T>whereT : class  However, I...
View ArticleNew Post: Resolving Open Generics with RegistrationBuilder
Hi Kathleen, Here is a response from Kevin on the MEF team.Yes it is possible to export generics using RegistrationBuilder.There is a bug in Desktop MEF that we didn’t fix. We did fix it in Oob MEF.The...
View ArticleNew Post: MEF with PostSharp
Hi,I’ve received a response from SharpCrafters support forum that give me a better understanding of what was happening.As far as I understand MEF loads the assemblies into the LoadFrom binding context...
View ArticleNew Post: How to reset mef container to implement Logout for my silverlight app
I'm having the same problem and need to "reset" the MEF container and clear out the shared parts. This is a dealbreaker for using MEF for IoC if I cannot empty out the container. As Dimpu575 stated,...
View ArticleNew Post: How to reset mef container to implement Logout for my silverlight app
Have you considered simply creating a whole new container and disposing the old one?cheers,Nick
View ArticleNew Post: How to reset mef container to implement Logout for my silverlight app
Thanks - yes I did but I wasn't able to successfully do so because I'm getting the exception below when recreating the new one."The container has already been initialized either by another call to...
View ArticleNew Post: How to reset mef container to implement Logout for my silverlight app
@Jaans,I ended up converting all my viewmodels as non shared and use some static methods and properties to share info btwn viewmodels. I dont know if that is right way but i had to move on :(Â
View ArticleCreated Issue: Shared part instantiated twice [14604]
When a:* Shared part* Involved in a circular dependency* Has more than one exportThen the part should be created only once but is instantiated twice.Found in version 1.0.16.Failing test case...
View ArticleNew Post: Assembly version as ExportMetadata
How can you use the current build version of an assembly as exportmetadata?
View ArticleCommented Issue: Shared part instantiated twice [14604]
When a:* Shared part* Involved in a circular dependency* Has more than one exportThen the part should be created only once but is instantiated twice.Found in version 1.0.16.Failing test case...
View ArticleNew Post: Cannot call SatisfyImports on a object of type 'xx' because it is...
I have export attributes on my views. and each view imports a viewmodel(stocktrader design) based on some requiremenet I had to do call satisfyimports. but when I call this, I get above...
View ArticleNew Post: MEF loading multiple instances of my MVVM Modules
I'm new to MEF, and MVVM, and I'm having some problems. I've finally got my View and ViewModel binding in my app; I'll explain what I've got and then the problem, hoping someone could help figure out...
View ArticleNew Post: MEF loading multiple instances of my MVVM Modules
Hi- which MEF version are you using, where are you creating the container, and how do you request the exports/satisfy the imports of the parts involved? cheers, Nick
View ArticleNew Post: Assembly version as ExportMetadata
For all exports, or just a selection? The former, I'm not sure about. There are a couple of days to achieve the latter. If you're using conventions, you can do this in an Export(x => ...) statement...
View ArticleNew Post: MEF loading multiple instances of my MVVM Modules
Hi Nick, I'm using the version that comes with .Net 4.5, but I solved my problem this morning! The problem was that in my View the Xaml I was assigning the DataContext - so when my view model was...
View ArticleNew Post: Resource keyname conflict between application resources
We have several independent apps that we are trying to tie together as a MEF application. Each of the original apps had common resources declared in App.Xaml. Now with MEF, there are no instances of...
View ArticleNew Post: Basic cross process singleton
I am trying to use MEF with VS2008 .NET 3.5 (Mef_Preview_9) to create a cross process singleton and everything I have tried returns a new instance. I have created MetaDataModelServer and Client...
View ArticleNew Post: Basic cross process singleton
Hi there- MEF's "sharing" applies within a single instance of the composition container. There's no support for inter-process sharing, which I believe needs a different/morr resilient implementation...
View ArticleNew Post: Reloading an updated version of XAP through DeploymentCatalog does...
Did you ever solve this issue? I am going down a similar path with switching to MEF instead of Prism to download modules. Thanks...
View ArticleNew Post: MEF, Silverlight, and Browser cached files/updating xaps
I read that the DeploymentCatalog does not support Silverlight cached assemblies. (Otherwise known as TPEs). This means that DeploymentCatalog will not download referenced assemblies that are packaged...
View Article