nooogle / CDS.CSharpScripting

Drop-in user control for C# editing with intellisense and compilation. Script compilation and execution classes for GUI and console applications.
MIT License
9 stars 3 forks source link

async/await support for compilation and/or running #10

Closed nooogle closed 3 years ago

nooogle commented 3 years ago

The underlying C# script runs synchronously, even though the method used to run it suggests async/await support (RunAsync). New methods have been added to the script runner and EasyScript to allow a task wrapper to be used for running scripts - this provides async/await support. Note that any GUI work done in response to script activity will need BeginInvoke if this async approach is used.