Streaming standard out and standard error from a sub-script using Util.Run()
Options
I'm using Util.Run to execute other LinqPad scripts from my current script. I'd like to see the outputs of those scripts as they execute, but currently the only way I know to get the output is calling .AsString() which waits until the entire script finishes.
Is there a mechanism for streaming the output back?
Note: the motivation behind doing this is the performance problem I'm facing here: http://forum.linqpad.net/discussion/1524/poor-lprun-startup-performance-for-simple-script/p1?new=1
Is there a mechanism for streaming the output back?
Note: the motivation behind doing this is the performance problem I'm facing here: http://forum.linqpad.net/discussion/1524/poor-lprun-startup-performance-for-simple-script/p1?new=1
Comments
-
partially related, in that someone was trying to use an async Main method to return a Task, but couldn't get it working:
http://forum.linqpad.net/discussion/comment/3240/#Comment_3240 -
There's no streaming mechanism. It wouldn't help in this case for a couple of reasons, one of which the slow startup time is likely to be related to a lack of ngen images on the Roslyn assemblies.