AX 7 supports working with tasks, but there still no support for delegates (in usual sense) in X++ (not mentioning lambda functions), therefore you have to pass name of a static method (and its class) to be called. You could do something similar in AX 2012. Nevertheless if you can, move your code creating the task to a Visual Studio project. There you can use use proper .NET delegates and if you need something from AX, just use AX proxy classes.
↧