PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Threading­InstrumentationTask­Info­RegistryRegister­Method
Open sandboxFocus

TaskInfoRegistry.RegisterMethod Method

RegisterMethod(Task, MethodInfo, CallerInfo)

Associates a System.Threading.Tasks.Task with the MethodInfo that created it.

Declaration
public static void RegisterMethod(Task task, MethodInfo method, CallerInfo callerInfo)
Parameters
Type Name Description
System.Threading.Tasks.Task task

The System.Threading.Tasks.Task returned by method.

MethodInfo method

The method that returned task.

CallerInfo callerInfo

Information about the code calling the method.