Skip to content

Instantly share code, notes, and snippets.

@NSouth
NSouth / ProcessAsyncHelper.cs
Last active May 27, 2020 — forked from Indigo744/ProcessAsyncHelper.cs
The right way to run external process in .NET (async version)
View ProcessAsyncHelper.cs
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// Process helper with asynchronous interface
/// - Based on https://gist.github.com/Indigo744/b5f3bd50df4b179651c876416bf70d0a
/// - And on https://stackoverflow.com/questions/470256/process-waitforexit-asynchronously
/// </summary>