PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Threading­Instrumentation / Threading­Instrumentation­Policy.​Task­Enhancements / Run_Func­Of­Task
Open sandbox

Method Run_FuncOfTask

Run_FuncOfTask(Func<Task>, out Task)

Declaration
[OnMethodInvokeAdvice]
[MatchPointcut("Run")]
[MethodInterceptionAdviceOptimization]
[DebuggerAspectMethod]
public static void Run_FuncOfTask([Argument(0)] Func<Task> action, [ReturnValue] out Task returnValue)
Parameters
Type Name Description
Func<Task> action
Task returnValue