A LoggingContext that represents a method or activity that can be suspended and resume (possibly on a different thread), such as an async method or an iterator.
public abstract class SuspendableLoggingContext : LoggingContext, ILoggingContext
Determines whether the current context is currently suspended (between a Suspend() and a Resume()).
Gets the ThreadLoggingContext for the thread in which the current LoggingContext is currently executed.
Disposes the current object.
Resumes the current context. Typically called when the state machine resumes execution, when the wait dependency is satisfied (in case of async methods) or when the MoveNext() method is called (in case of iterators).
Resume the current context, but only if it is currently suspended.
Suspends the current context. Typically called when starting to wait for a wait dependency (the operand of the
Formats a description of the current LoggingContext into a given StringBuilder.