RecordingScope Class |
Namespace: PostSharp.Patterns.Recording
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.10.10.0 (6.10.10.0)
public sealed class RecordingScope : IDisposable
The RecordingScope type exposes the following members.
Name | Description | |
---|---|---|
OperationDescriptor |
Gets or sets the IOperationDescriptor for the current scope.
|
Name | Description | |
---|---|---|
Complete |
Closes the current RecordingScope and mark it as successful.
| |
Dispose |
Closes the current RecordingScope.
|
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.