PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Threading­Instrumentation Namespace / Task­Info­Registry Class / Task­Info­Registry Methods / Task­Info­Registry.​Register­Method Method

TaskInfoRegistry.RegisterMethod Method

Associates a Task with the MethodInfo that created it.

Namespace:  PostSharp.Patterns.Diagnostics.ThreadingInstrumentation
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.10.0 (6.10.10.0)
Syntax
C#
public static void RegisterMethod(
	Task task,
	MethodInfo method,
	CallerInfo callerInfo
)

Parameters

task
Type: System.Threading.Tasks.Task
The Task returned by method.
method
Type: System.Reflection.MethodInfo
The method that returned task.
callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Information about the code calling the method.
See Also