- Getting started
- Creating projects
- OPC UA
- Graphic objects
- Predefined graphic objects
- Sessions and locales
- Object and variable references
- Extending projects
- NetLogic
- NetLogic tutorial
Call a method in an asynchronous task
You can call a method with parameters in an asynchronous task.
Syntax example
private LongRunningTask asynchronousTask; [ExportMethod] public void Method1() { IUAVariable Var1 asynchronousTask = new LongRunningTask(() => Logic1(Var1), LogicObject); } public void Logic1(IUAVariable Var1) { // Insert code to be run }
Provide Feedback