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.
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>) | Initializes the aspect. The implementation must add advice, child aspects and validators
using the |
OverrideMethod() | Default template of the new method implementation. |