Extension methods that configure the ObservableAttribute aspect from fabrics.
Namespace: Metalama.Patterns.Observability.Configuration
Assembly: Metalama.Patterns.Observability.dll
Syntax
[CompileTime]
public static class ObservabilityExtensionsRemarks
Use these methods to configure observability options programmatically at the compilation, namespace, type, or member level. This is particularly useful for marking multiple methods as constant without adding the ConstantAttribute to each one individually.
Methods
| Name | Description |
|---|---|
| ConfigureObservability(IQuery<ICompilation>, Action<ObservabilityTypeOptionsBuilder>) | Configures ObservableAttribute for the current project. |
| ConfigureObservability(IQuery<IMember>, Action<ObservabilityMemberOptionsBuilder>) | Configures ObservableAttribute for the current member. |
| ConfigureObservability(IQuery<INamedType>, Action<ObservabilityTypeOptionsBuilder>) | Configures ObservableAttribute for the current type. |
| ConfigureObservability(IQuery<INamespace>, Action<ObservabilityTypeOptionsBuilder>) | Configures ObservableAttribute for the current namespace. |