Provider Model - DefinitionProviderPartCatalog does not cache values unless aggregated


The DefinitionProviderPartCatalog does not cache any parts unless it's added to an AggregateCatalog first. This means that when the AddProviderPart metnod is called on the CompositionContainer it will fail with an exception. The reason for this is that the method will try to retreive a ProviderComposablePartDefinition for the object instance and the cache will be empty!


TheCodeJunkie wrote Mar 5, 2009 at 9:36 PM

A quick work around for this, until a fix has been checked in, is to add the DefinitionProviderPartCatalog to an AggregateCatalog which is then passed to the CompositionContainer

wrote Mar 5, 2009 at 9:51 PM

TheCodeJunkie wrote Mar 7, 2009 at 8:26 PM

This issue has been resolved in change set 15094

wrote Mar 7, 2009 at 8:28 PM

wrote Feb 14, 2013 at 8:47 PM

wrote May 16, 2013 at 10:39 AM

wrote May 16, 2013 at 10:39 AM

wrote Jun 14, 2013 at 8:15 AM