Defines the scope a logical operation, that is, a set of change that should be undone or redone as a whole.
Implements
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model.dll
Syntax
[Obsolete("[Recordable] aspect and its components are deprecated and will be removed in a future version.", false)]
public sealed class RecordingScope : IDisposableRemarks
Scopes can be defined declaratively using the RecordingScopeAttribute custom attribute.
To open a scope imperatively, use the OpenScope(RecordingScopeOption) method. Use the Complete() or Dispose() method to close the scope.
Properties
| Name | Description |
|---|---|
| OperationDescriptor | Gets or sets the IOperationDescriptor for the current scope. |
Methods
| Name | Description |
|---|---|
| Complete() | Closes the current RecordingScope and mark it as successful. |
| Dispose() | Closes the current RecordingScope. |