OpenScope(RecordingScopeOption)
Opens an unnamed RecordingScope.
Declaration
public RecordingScope OpenScope(RecordingScopeOption option = RecordingScopeOption.Default)Parameters
| Type | Name | Description |
|---|---|---|
| RecordingScopeOption | option | Scope options. Specify this parameter if you want the scope to be Atomic. |
Returns
| Type | Description |
|---|---|
| RecordingScope | A RecordingScope object, which should be closed using Complete() or Dispose(). |
Remarks
The name of the scope can be set at any time by setting the OperationDescriptor property.
OpenScope(string, RecordingScopeOption)
Opens a RecordingScope with a given name.
Declaration
public RecordingScope OpenScope(string name, RecordingScopeOption option = RecordingScopeOption.Default)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The scope name, or |
| RecordingScopeOption | option | Scope options. Specify this parameter if you want the scope to be Atomic. |
Returns
| Type | Description |
|---|---|
| RecordingScope | A RecordingScope object, which should be closed using Complete() or Dispose(). |
Remarks
The name of the scope can be set at any time by setting the OperationDescriptor property.