PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / IContext­Local­Logger Interface / IContext­Local­Logger Methods / IContext­Local­Logger.​Set­Wait­Dependency Method

IContextLocalLogger.SetWaitDependency Method

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

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
void SetWaitDependency(
	ILoggingContext context,
	Object waited
)

Parameters

context
Type: PostSharp.Patterns.Diagnostics.Contexts.ILoggingContext
The waiting context.
waited
Type: System.Object
The "thing" that is awaited for. Typically a Task, or TaskInfo, or another context.
See Also