Open sandboxFocus

Class ObservabilityContract

Represents behavioral guarantees made by a method, field, or property with respect to the ObservableAttribute aspect.

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

An observability contract allows you to inform the ObservableAttribute aspect about the behavior of methods it cannot analyze automatically. This prevents false positive warnings and enables correct dependency tracking.

Properties

Name Description
Constant

Gets an ObservabilityContract that guarantees that the outputs of a method depend only on its input parameters (i.e., identical inputs will always produce identical outputs) and that the method has no side effects on observable state.

Extension Methods

See Also