Open sandboxFocus

Interface IHierarchicalOptionsProvider

A base interface for attributes and aspects that provide options.

Namespace: Metalama.Framework.Options
Assembly: Metalama.Framework.dll
Syntax
[RunTimeOrCompileTime]
public interface IHierarchicalOptionsProvider
Remarks

This interface allows custom attributes and aspects to supply hierarchical options that will be merged with other options in the configuration system. This is typically used to expose options directly on an aspect's custom attribute, allowing users to configure the aspect's behavior when they apply it.

When implementing this interface, the GetOptions(in OptionsProviderContext) method should return one or more option objects that implement IHierarchicalOptions. These options will be merged with options from other sources (such as fabrics) according to the rules defined in ApplyChangesAxis.

Methods

Name Description
GetOptions(in OptionsProviderContext)

Gets the list of options provided by the current aspect or attribute.

Extension Methods

See Also