I have scripts that run on request and are compiled using CodeDomProvider. Here's an example of one:
var yes = SendYesNo();
if (yes)
// Do something
else
// Do something else
Now. SendYesNo displays a box with input from the user. I want to halt the script on that line, until a response is set. And then, take the response and apply it to the variable and continue the execution. So far I've used await/async, but I dislike this idea. Is it possible with something else?