Open sandboxFocus

Class ObservabilityTypeOptionsBuilder

Builder for configuring ObservableAttribute options at the compilation, namespace, or type level.

Inheritance
ObservabilityTypeOptionsBuilder
Namespace: Metalama.Patterns.Observability.Configuration
Assembly: Metalama.Patterns.Observability.dll
Syntax
[CompileTime]
public sealed class ObservabilityTypeOptionsBuilder
Remarks

Use this builder with the ConfigureObservability(IQuery<ICompilation>, Action<ObservabilityTypeOptionsBuilder>) extension method to configure observability options from a fabric.

Constructors

Name Description
ObservabilityTypeOptionsBuilder()

Properties

Name Description
EnableOnObservablePropertyChangedMethod

Gets or sets a value indicating whether the OnObservablePropertyChanged method should be introduced. The default value is true.

ObservabilityContract

Gets or sets an ObservabilityContract for the target member, guaranteeing its behavior with respect to the ObservableAttribute aspect.

ObservabilityStrategy

Gets or sets the IObservabilityStrategy used to implement the ObservableAttribute aspect.

SuppressWarnings

Gets or sets a value whether observability warnings in the target members must be suppressed.

Extension Methods

See Also