PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsLogging­ContextSet­Wait­Dependency
Open sandboxFocus

LoggingContext.SetWaitDependency Method

SetWaitDependency(Object)

Sets the wait dependency for the current context, i.e. sets a representation of what the current context is waiting for. This operation is available only in custom contexts.

Declaration
public virtual void SetWaitDependency(object waited)
Parameters
Type Name Description
Object waited

The "thing" being waited for (for instance a System.Threading.Tasks.Task or a TaskInfo).