2 types derived from ExportDescriptor
System.Composition.Hosting (2)
System\Composition\Hosting\Core\CycleBreakingExportDescriptor.cs (1)
9
internal sealed class CycleBreakingExportDescriptor :
ExportDescriptor
System\Composition\Hosting\Core\DirectExportDescriptor.cs (1)
8
internal sealed class DirectExportDescriptor :
ExportDescriptor
38 references to ExportDescriptor
Microsoft.DotNet.AsmDiff (1)
MefHelpers.cs (1)
78
ExportDescriptor
.Create((c, o) => _exportedInstance, Metadata));
System.Composition.Hosting (31)
System\Composition\Hosting\Core\CycleBreakingExportDescriptor.cs (2)
11
private readonly Lazy<
ExportDescriptor
> _exportDescriptor;
13
public CycleBreakingExportDescriptor(Lazy<
ExportDescriptor
> exportDescriptor)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (2)
11
private readonly Lazy<
ExportDescriptor
> _exportDescriptor;
13
public CycleBreakingMetadataDictionary(Lazy<
ExportDescriptor
> exportDescriptor)
System\Composition\Hosting\Core\ExportDescriptor.cs (2)
26
/// Construct an <see cref="
ExportDescriptor
"/>.
31
public static
ExportDescriptor
Create(CompositeActivator activator, IDictionary<string, object> metadata)
System\Composition\Hosting\Core\ExportDescriptorPromise.cs (5)
20
private readonly Lazy<
ExportDescriptor
> _descriptor;
41
Func<IEnumerable<CompositionDependency>,
ExportDescriptor
> getDescriptor)
47
_descriptor = new Lazy<
ExportDescriptor
>(() => getDescriptor(_dependencies.Value), false);
76
public
ExportDescriptor
GetDescriptor()
84
ExportDescriptor
relay = _descriptor.Value;
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (6)
13
private volatile Dictionary<CompositionContract,
ExportDescriptor
[]> _partDefinitions = new Dictionary<CompositionContract,
ExportDescriptor
[]>();
20
public bool TryGetSingleForExport(CompositionContract exportKey, out
ExportDescriptor
defaultForExport)
22
ExportDescriptor
[] allForExport;
29
var updatedDefinitions = new Dictionary<CompositionContract,
ExportDescriptor
[]>(_partDefinitions);
37
allForExport = (
ExportDescriptor
[])_partDefinitions[exportKey];
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (3)
13
private readonly IDictionary<CompositionContract,
ExportDescriptor
[]> _partDefinitions;
23
IDictionary<CompositionContract,
ExportDescriptor
[]> partDefinitions,
139
ExportDescriptor
[] definitions;
System\Composition\Hosting\Core\LifetimeContext.cs (1)
197
ExportDescriptor
defaultForExport;
System\Composition\Hosting\Providers\CurrentScope\CurrentScopeExportDescriptorProvider.cs (1)
23
_ =>
ExportDescriptor
.Create((c, o) => c, NoMetadata)) };
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (2)
47
var
dsc = d.Target.GetDescriptor();
49
return
ExportDescriptor
.Create((c, o) =>
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (2)
52
var
dsc = d.Target.GetDescriptor();
53
return
ExportDescriptor
.Create((c, o) =>
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (1)
52
return
ExportDescriptor
.Create((c, o) => dependentDescriptors.Select(e => (TElement)e.Activator(c, o)).ToArray(), NoMetadata);
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (2)
37
var
dsc = d.Target.GetDescriptor();
39
return
ExportDescriptor
.Create((c, o) => new Lazy<TValue>(() => (TValue)CompositionOperation.Run(c, da)), dsc.Metadata);
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (2)
40
var
dsc = d.Target.GetDescriptor();
42
return
ExportDescriptor
.Create((c, o) =>
System.Composition.TypedParts (6)
System\Composition\Hosting\InstanceExportDescriptorProvider.cs (1)
23
ExportDescriptor
.Create((c, o) => _exportedInstance, Metadata));
System\Composition\TypedParts\Discovery\DiscoveredExport.cs (1)
46
protected abstract
ExportDescriptor
GetExportDescriptor(CompositeActivator partActivator);
System\Composition\TypedParts\Discovery\DiscoveredInstanceExport.cs (2)
17
protected override
ExportDescriptor
GetExportDescriptor(CompositeActivator partActivator)
19
return
ExportDescriptor
.Create(partActivator, Metadata);
System\Composition\TypedParts\Discovery\DiscoveredPropertyExport.cs (2)
23
protected override
ExportDescriptor
GetExportDescriptor(CompositeActivator partActivator)
33
return
ExportDescriptor
.Create(activator.Compile(), Metadata);