Interestingly .ToString() method shows somewhat different list:
at Task Project2.Class1.Method2()
at async Task Project2.Class1.Method1()
at void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
at Task Project2.Class1.Method1()
at async Task Application.Program.Main(string[] args)
at void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<TStateMachine>(ref TStateMachine stateMachine)
at Task Application.Program.Main(string[] args)
at void Application.Program.<Main>(?)
I have a sample async console app with Aspect Oriented Programming logger, in this structure:
Call list is:
ConsoleApp.Main -> Project.Class.Method1 -> Project.Class.Method2
All three of them are async.
This is the
GetFrame
list when observed by AOP logger while entering toMethod2
:Interestingly
.ToString()
method shows somewhat different list:I'm attaching sample project.
test.zip