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 8: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

TheCodeJunkie wrote Mar 7, 2009 at 7:26 PM

This issue has been resolved in change set 15094