13 references to Part
System.ComponentModel.Composition (13)
System\ComponentModel\Composition\Hosting\ImportEngine.cs (6)
455var part = partManager.Part; 533return new CompositionResult(ErrorBuilder.InvalidStateForRecompposition(partManager.Part)); 537var affectedImports = RecompositionManager.GetAffectedImports(partManager.Part, changedExports); 572return new CompositionResult(ErrorBuilder.PreventedByExistingImport(partManager.Part, import)); 577var exportsResult = TryGetExports(_sourceProvider, partManager.Part, import, atomicComposition); 642partManagers.Remove(partManager.Part);
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (7)
63if (Part == null) 68return _importedContractNames ??= Part.ImportDefinitions.Select(import => import.ContractName ?? ImportDefinition.EmptyContractName).Distinct().ToArray(); 75Part.SetImport(import, exports); 83ErrorBuilder.CreatePartCannotSetImport(Part, import, ex)); 89ErrorBuilder.CreatePartCannotSetImport(Part, import, ex)); 127Part.Activate(); 133ErrorBuilder.CreatePartCannotActivate(Part, ex));