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