ProcessHandler 1.0.0

dotnet add package ProcessHandler --version 1.0.0
NuGet\Install-Package ProcessHandler -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ProcessHandler" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ProcessHandler --version 1.0.0
#r "nuget: ProcessHandler, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ProcessHandler as a Cake Addin
#addin nuget:?package=ProcessHandler&version=1.0.0

// Install ProcessHandler as a Cake Tool
#tool nuget:?package=ProcessHandler&version=1.0.0

Introduction

ProcessHandler is a wrapper over System.Diagnostic.Process which provide efficient callbacks for running any shell command asynchronously with realtime output. You can execute any shell commands with realtime output.

Usage Notes

Below is an excerpt from sample solution hosted on bitbucket.org.

  ProcessOptions options = new ProcessOptions();
  options.FileName = "cmd.exe";
  options.Arguments = "/c help";

  var process = new ProcessHandler(options);

  process.Subscribe((output) =>
  {
      textBox1.UpdateTextAsync($"{textBox1.Text}{Environment.NewLine}{output}");
  }, (error) =>
  {
      textBox1.UpdateTextAsync($"{textBox1.Text}{Environment.NewLine}Error: {error}");
  }, (o, e) =>
  {
       MessageBox.Show($"Output{Environment.Newline}{e.OutputData}");
  });

  process.Start();
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 484 3/28/2020

Initial release