How to Dispose - ExportFactory for the desktop

Jul 12, 2010 at 12:39 PM

hi i use the ExportFactory<> from Glenn Block (http://mef.codeplex.com/Thread/View.aspx?ThreadId=207539)  in my testapp. all works fine, but how can i dispose my viewmodels?

i tried this:

...

private ExportLifetimeContext<INonShared> lastbatch;

...

this.lastbatch.Dispose();

...

the dispose method is called for my viewmodels, but the destructor is not. do i miss anything?