11 instantiations of CompositionResult
System.ComponentModel.Composition (11)
System\ComponentModel\Composition\CompositionResult.cs (1)
56return new CompositionResult(_errors.ConcatAllowingNull(errors));
System\ComponentModel\Composition\CompositionResultOfT.cs (1)
67return new CompositionResult(_errors);
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
283result = result.MergeResult(new CompositionResult(ex.Errors));
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
570return new CompositionResult(ex.Errors);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (4)
299return new CompositionResult(ErrorBuilder.CreatePartCycle(part)); 380return new CompositionResult(ErrorBuilder.CreatePartCycle(part)); 533return new CompositionResult(ErrorBuilder.InvalidStateForRecompposition(partManager.Part)); 572return new CompositionResult(ErrorBuilder.PreventedByExistingImport(partManager.Part, import));
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (3)
82return new CompositionResult( 88return new CompositionResult( 132return new CompositionResult(
43 references to CompositionResult
System.ComponentModel.Composition (43)
System\ComponentModel\Composition\CompositionResult.cs (5)
13public static readonly CompositionResult SucceededResult; 36public CompositionResult MergeResult(CompositionResult result) 49public CompositionResult MergeError(CompositionError error) 54public CompositionResult MergeErrors(IEnumerable<CompositionError>? errors)
System\ComponentModel\Composition\CompositionResultOfT.cs (1)
65internal CompositionResult ToResult()
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (2)
245CompositionResult result = CompositionResult.SucceededResult;
System\ComponentModel\Composition\Hosting\CompositionServices.cs (5)
561internal static CompositionResult TryInvoke(Action action) 566return CompositionResult.SucceededResult; 574internal static CompositionResult TryFire<TEventArgs>(EventHandler<TEventArgs> _delegate, object? sender, TEventArgs e) 577CompositionResult result = CompositionResult.SucceededResult;
System\ComponentModel\Composition\Hosting\ExportProvider.cs (2)
187CompositionResult result = CompositionServices.TryFire(changedEvent, this, e); 203CompositionResult result = CompositionServices.TryFire(changingEvent, this, e);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (22)
115var result = TryPreviewImportsStateMachine(partManager, part, atomicComposition); 171var result = TrySatisfyImports(partManager, part, true); 208var result = TrySatisfyImports(partManager, part, false); 290private CompositionResult TryPreviewImportsStateMachine(PartManager partManager, 293var result = CompositionResult.SucceededResult; 327private CompositionResult TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part) 329var result = CompositionResult.SucceededResult; 410private CompositionResult TrySatisfyImports(PartManager partManager, ComposablePart part, bool shouldTrackImports) 414var result = CompositionResult.SucceededResult; 450private CompositionResult TrySatisfyImportSubset(PartManager partManager, 453CompositionResult result = CompositionResult.SucceededResult; 488CompositionResult result = CompositionResult.SucceededResult; 518private CompositionResult TryRecomposeImports(PartManager partManager, 521var result = CompositionResult.SucceededResult; 567private CompositionResult TryRecomposeImport(PartManager partManager, bool partComposed, 603return CompositionResult.SucceededResult;
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (4)
71public CompositionResult TrySetImport(ImportDefinition import, Export[] exports) 77return CompositionResult.SucceededResult; 123public CompositionResult TryOnComposed() 128return CompositionResult.SucceededResult;
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (2)
474var result = CompositionResult.SucceededResult;