- Getting started
- Using the software
- OPC UA
- Graphic and layout objects
- Developing solutions
- Developing projects with C#
- Application examples
- UI tutorial
- OPC UA tutorial
- NetLogic tutorial
- Object and variable references
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