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>) | Defines the aspect implementation by adding advice, child aspects, and validators to the target declaration. |
| OverrideMethod() | The default template for overriding method implementations. |