I have a question on which, AFAIK information is scarce.
In the StockTrader RI provided by Microsoft there is a definition for a AutoPopulateExportedViewsBehavior
, the purpose of which I seem to grasp.
However, this behaviour is declared with an MEF PartCreationPolicy:
[PartCreationPolicy(CreationPolicy.NonShared)]
public class AutoPopulateExportedViewsBehavior : RegionBehavior, IPartImportsSatisfiedNotification
Could anybody explain why this Part Creation policy cannot be "Shared"? Why would individual instances of this policy need to be provided upon each call for this behaviour?
Am I correct in assuming this is because the behaviour gets attached to a specific region and thus you inherently need an instance?