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