System.Composition.Hosting.Core Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains classes that represent core functionality of the composition engine, including composition operations, contracts, part dependencies, export descriptions, and the lifetime context of a shared part that governs how it can be disposed.
Classes
CompositionContract |
Represents an agreement between parts that allows the composition engine to match imports with exports. |
CompositionDependency |
Represents a dependency that a part must have in order to fulfill an ExportDescriptorPromise. This class is used by the composition engine during initialization to determine whether the composition can be made, and if not, what error to provide. |
CompositionOperation |
Represents a single composition operation. |
DependencyAccessor |
Allows ExportDescriptorProvider objects to locate their dependencies. |
ExportDescriptor |
Describes an export of a part known to the composition engine. |
ExportDescriptorPromise |
Represents an export descriptor that an available part can provide. |
ExportDescriptorProvider |
Provides the description of an export for a part known to the composition engine. |
LifetimeContext |
Represents a node in the lifetime tree. |
Delegates
CompositeActivator |
The delegate that allows instances of parts and exports to be accessed during composition. |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈