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

ILogger.SetWaitDependency Method

SetWaitDependency(ILoggingContext, Object)

Sets the wait dependency for a given context, i.e. give information about what the given context is waiting (or awaiting) for.

Declaration
void SetWaitDependency(ILoggingContext context, object waited)
Parameters
Type Name Description
ILoggingContext context

The waiting context.

Object waited

The "thing" that is awaited for. Typically a System.Threading.Tasks.Task, or TaskInfo, or another context.