MetalamaAPI documentationPatterns APIMetalama.​Patterns.​ContractsSuspend­Invariants­Attribute
Open sandboxFocus

SuspendInvariantsAttribute Class

Aspect that, when applied to a method or accessor, suspends the execution of invariants for the object while this method is executing. All threads and execution contexts are affected. The feature must be enabled through the IsInvariantSuspensionSupported contract option.

Inheritance
System.Object
SuspendInvariantsAttribute
Namespace: Metalama.Patterns.Contracts
Assembly: Metalama.Patterns.Contracts.dll
Syntax
public sealed class SuspendInvariantsAttribute : OverrideMethodAspect, IAspect<IMethod>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IMethod>

Constructors

Name Description
SuspendInvariantsAttribute()

Methods

Name Description
BuildAspect(IAspectBuilder<IMethod>)
OverrideMethod()

See Also