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