New to all this, little help? #227
Unanswered
thehijacker
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can put anything else inside your
Make sure you
You issue separate cancellation tokens for each one. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an old application that fires multiple background processes written in .NET 4.5. Now migrated it to 7.0 and wish to replace the ugly code I had with CliWrap because I am sure it is proper and modern way to do it. But I am stuck with few problems that I had solved with old code, but can not figure out how to do them now.
I was using new Process and feed it's StandardOutput and StandardError to a function for further processing. Here I can only figure out how to pass the output and error to console. How to push this to external function for live processing?
It is a console application but even a simple sample doesn't work for me. Under main() I fire new background thread that runs a php server and closes it after 5 seconds. Process exits but the task never finishes. Sample code I am using:
I wish there were more samples in this project to use a guidence.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions