A LoggingContext that represents an iterator.
Inheritance
IteratorLoggingContext
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class IteratorLoggingContext : SuspendableLoggingContext, ILoggingContext, IDisposableRemarks
A custom backend that needs to store more data in this context can derive a class from it and override CreateIteratorContext() to return an instance of the derived class.
Constructors
| Name | Description |
|---|---|
| IteratorLoggingContext(LoggingBackend) | Initializes a new instance of the IteratorLoggingContext class. |
Properties
| Name | Description |
|---|---|
| IsAsync | Gets a value indicating whether the current LoggingContext represents an async method or an asynchronous custom activity. |
| Iterator | Gets the iterator object. |
Methods
| Name | Description |
|---|---|
| Open(IEnumerator, ref LogMemberInfo) | Opens a new IteratorLoggingContext. |