System\ComponentModel\Composition\AttributedModelServices.cs (12)
26public static ComposablePart CreatePart(object attributedPart)
33public static ComposablePart CreatePart(object attributedPart, ReflectionContext reflectionContext)
41public static ComposablePart CreatePart(ComposablePartDefinition partDefinition, object attributedPart)
96public static ComposablePart AddExportedValue<T>(this CompositionBatch batch, T exportedValue)
114public static ComposablePart AddExportedValue<T>(this CompositionBatch batch, string contractName, T exportedValue)
135public static ComposablePart AddPart(this CompositionBatch batch, object attributedPart)
140ComposablePart part = AttributedModelServices.CreatePart(attributedPart);
155Enumerable.Empty<ComposablePart>());
178public static ComposablePart SatisfyImportsOnce(this ICompositionService compositionService, object attributedPart)
183ComposablePart part = AttributedModelServices.CreatePart(attributedPart);
209public static ComposablePart SatisfyImportsOnce(this ICompositionService compositionService, object attributedPart, ReflectionContext reflectionContext)
215ComposablePart part = AttributedModelServices.CreatePart(attributedPart, reflectionContext);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (22)
25private ConditionalWeakTable<ComposablePart, PartManager> _partManagers = new ConditionalWeakTable<ComposablePart, PartManager>();
58/// Previews all the required imports for the given <see cref="ComposablePart"/> to
64/// <see cref="ComposablePart"/>.
67/// The <see cref="ComposablePart"/> to preview the required imports.
83public void PreviewImports(ComposablePart part, AtomicComposition? atomicComposition)
141/// <see cref="ComposablePart"/>.
144/// The <see cref="ComposablePart"/> to set the imports.
156public void SatisfyImports(ComposablePart part)
181/// The <see cref="ComposablePart"/> to set the imports.
193public void SatisfyImportsOnce(ComposablePart part)
215/// <see cref="ComposablePart"/> and releases all the <see cref="Export"/>s used to
216/// satisfy the imports on the <see cref="ComposablePart"/>.
222/// The <see cref="ComposablePart"/> to release the imports on.
227public void ReleaseImports(ComposablePart part, AtomicComposition? atomicComposition)
291ComposablePart part, AtomicComposition? atomicComposition)
327private CompositionResult TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part)
410private CompositionResult TrySatisfyImports(PartManager partManager, ComposablePart part, bool shouldTrackImports)
455var part = partManager.Part;
632ConditionalWeakTable<ComposablePart, PartManager>? partManagers = null;
662private PartManager? GetPartManager(ComposablePart part, bool createIfNotpresent)
738ComposablePart part, ImportDefinition definition, AtomicComposition? atomicComposition)