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: 2023.0.3.0 (2023.0.3.0)
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.