10 instantiations of ExportDescriptorPromise
Microsoft.DotNet.AsmDiff (1)
MefHelpers.cs (1)
77
yield return new
ExportDescriptorPromise
(contract, _exportedInstance.ToString(), true, NoDependencies, _ =>
System.Composition.Hosting (7)
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
141
return definitions.Select(d => new
ExportDescriptorPromise
(contract, "Preexisting", false, s_noDependencies, _ => d)).ToArray();
System\Composition\Hosting\Providers\CurrentScope\CurrentScopeExportDescriptorProvider.cs (1)
18
return new[] { new
ExportDescriptorPromise
(
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
40
.Select(d => new
ExportDescriptorPromise
(
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
45
.Select(d => new
ExportDescriptorPromise
(
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (1)
41
return new
ExportDescriptorPromise
(
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (1)
30
.Select(d => new
ExportDescriptorPromise
(
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (1)
33
.Select(d => new
ExportDescriptorPromise
(
System.Composition.TypedParts (2)
System\Composition\Hosting\InstanceExportDescriptorProvider.cs (1)
22
yield return new
ExportDescriptorPromise
(contract, _exportedInstance.ToString(), true, NoDependencies, _ =>
System\Composition\TypedParts\Discovery\DiscoveredExport.cs (1)
34
return new
ExportDescriptorPromise
(
45 references to ExportDescriptorPromise
Microsoft.DotNet.AsmDiff (1)
MefHelpers.cs (1)
74
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract contract, DependencyAccessor descriptorAccessor)
System.Composition.Hosting (41)
System\Composition\Hosting\Core\CompositionDependency.cs (8)
14
/// <see cref="
ExportDescriptorPromise
"/>. Used by the composition engine during
20
private readonly
ExportDescriptorPromise
_target;
27
private readonly
ExportDescriptorPromise
[] _oversuppliedTargets;
40
public static CompositionDependency Satisfied(CompositionContract contract,
ExportDescriptorPromise
target, bool isPrerequisite, object site)
87
public static CompositionDependency Oversupplied(CompositionContract contract, IEnumerable<
ExportDescriptorPromise
> targets, object site)
105
private CompositionDependency(CompositionContract contract,
ExportDescriptorPromise
target, bool isPrerequisite, object site)
119
private CompositionDependency(CompositionContract contract, IEnumerable<
ExportDescriptorPromise
> targets, object site)
130
public
ExportDescriptorPromise
Target { get { return _target; } }
System\Composition\Hosting\Core\DependencyAccessor.cs (1)
19
protected abstract IEnumerable<
ExportDescriptorPromise
> GetPromises(CompositionContract exportKey);
System\Composition\Hosting\Core\ExportDescriptorProvider.cs (4)
21
protected static readonly IEnumerable<
ExportDescriptorPromise
> NoExportDescriptors = Enumerable.Empty<
ExportDescriptorPromise
>();
43
/// to the <see cref="
ExportDescriptorPromise
"/>. The actual descriptors provided should not close over or reference any
46
public abstract IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (5)
39
var @checked = new HashSet<
ExportDescriptorPromise
>();
54
private void CheckTarget(CompositionDependency dependency, HashSet<
ExportDescriptorPromise
> @checked, Stack<CompositionDependency> checking)
79
private void CheckDependency(CompositionDependency dependency, HashSet<
ExportDescriptorPromise
> @checked, Stack<CompositionDependency> checking)
133
protected override IEnumerable<
ExportDescriptorPromise
> GetPromises(CompositionContract contract)
154
foreach (
var
definition in newDefinitions)
System\Composition\Hosting\Core\UpdateResult.cs (7)
14
private static readonly
ExportDescriptorPromise
[] s_noPromises = Array.Empty<
ExportDescriptorPromise
>();
17
private readonly List<
ExportDescriptorPromise
> _providedDescriptors = new List<
ExportDescriptorPromise
>();
18
private
ExportDescriptorPromise
[] _results;
37
public void AddPromise(
ExportDescriptorPromise
promise)
43
public
ExportDescriptorPromise
[] GetResults()
System\Composition\Hosting\Providers\CurrentScope\CurrentScopeExportDescriptorProvider.cs (1)
13
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract contract, DependencyAccessor definitionAccessor)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (3)
16
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract exportKey, DependencyAccessor definitionAccessor)
23
return (
ExportDescriptorPromise
[])gldm(exportKey, definitionAccessor);
26
private static
ExportDescriptorPromise
[] GetExportFactoryDescriptors<TProduct>(CompositionContract exportFactoryContract, DependencyAccessor definitionAccessor)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (3)
18
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract contract, DependencyAccessor definitionAccessor)
26
return (
ExportDescriptorPromise
[])gldm(contract, definitionAccessor);
29
private static
ExportDescriptorPromise
[] GetExportFactoryDescriptors<TProduct, TMetadata>(CompositionContract exportFactoryContract, DependencyAccessor definitionAccessor)
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (3)
17
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract contract, DependencyAccessor definitionAccessor)
36
return new[] { (
ExportDescriptorPromise
)gimdm(contract, elementContract, definitionAccessor) };
39
private static
ExportDescriptorPromise
GetImportManyDescriptor<TElement>(CompositionContract importManyContract, CompositionContract elementContract, DependencyAccessor definitionAccessor)
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (3)
17
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract exportKey, DependencyAccessor definitionAccessor)
24
return (
ExportDescriptorPromise
[])gldm(exportKey, definitionAccessor);
27
private static
ExportDescriptorPromise
[] GetLazyDefinitions<TValue>(CompositionContract lazyContract, DependencyAccessor definitionAccessor)
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (3)
17
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract exportKey, DependencyAccessor definitionAccessor)
25
return (
ExportDescriptorPromise
[])gldm(exportKey, definitionAccessor);
28
private static
ExportDescriptorPromise
[] GetLazyDefinitions<TValue, TMetadata>(CompositionContract lazyContract, DependencyAccessor definitionAccessor)
System.Composition.TypedParts (3)
System\Composition\Hosting\InstanceExportDescriptorProvider.cs (1)
19
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract contract, DependencyAccessor descriptorAccessor)
System\Composition\TypedParts\Discovery\DiscoveredExport.cs (1)
30
public
ExportDescriptorPromise
GetExportDescriptorPromise(
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
55
public override IEnumerable<
ExportDescriptorPromise
> GetExportDescriptors(CompositionContract contract, DependencyAccessor definitionAccessor)