String methodName = task. NamedTask task = new NamedTask(() => AsyncMethod(arg1, arg2, argN)) In the visual studio debugger you can access this and see the m_action private variable, as well as the debugger display annotation, displays it as Method=Īfter that. The doParallel 18 package and its dependencies, foreach 19 (for creating a loop structure) and parallel, 6 can assign multiple cores to a function on both Windows and Unix-like platforms (such as Mac OS X. Specifically I am implementing a custom task scheduler, and would like to generate statistics on the duration a task runs, which I will then aggregate by the method running inside of the task. On computers with multiple processors, multiple cores, or both, it is possible to increase application speed using parallel processing. I am looking to get the method/action name from a task in C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |