Open sandboxFocus

Interface IFabricInstance

Represents a Fabric as an IAspectPredecessor, allowing fabrics to participate in the aspect predecessor chain when they cause aspects to be added to declarations.

Namespace: Metalama.Framework.Fabrics
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IFabricInstance : IAspectPredecessor
Remarks

This interface serves as a wrapper that presents a Fabric within the IAspectPredecessor model. When a fabric adds an aspect to a declaration (via AmendProject(IProjectAmender), AmendNamespace(INamespaceAmender), or AmendType(ITypeAmender)), the fabric instance becomes a predecessor of that aspect instance, appearing in the aspect's Predecessors collection.

The TargetDeclaration property identifies the declaration scope where the fabric executes: the compilation for ProjectFabric, the namespace for NamespaceFabric, or the containing type for TypeFabric.

Properties

Name Description
Fabric

Gets the Fabric instance.

Extension Methods

See Also