C# Class withSIX.Core.Infra.Services.ReactiveProcess

Uses character by character parsing for StandardOutput and StandardError, so \r can be processed. Uses observables instead of eventhandlers. Do not call BeginReadStandardOutput and BeginReadStandardError etc
Inheritance: System.Diagnostics.Process
Datei anzeigen Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Public Methods

Method Description
Create ( string fileName, string arguments ) : ReactiveProcess
ReactiveProcess ( ) : System
StartAsync ( ) : System.Threading.Tasks.Task

Validates StartInfo. Completes once the process has exited

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CreateAfterLaunchTasks ( ) : IEnumerable
ReadStreamToEnd ( StreamReader stream, IObserver observable ) : System.Threading.Tasks.Task

Method Details

Create() public static method

public static Create ( string fileName, string arguments ) : ReactiveProcess
fileName string
arguments string
return ReactiveProcess

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ReactiveProcess() public method

public ReactiveProcess ( ) : System
return System

StartAsync() public method

Validates StartInfo. Completes once the process has exited
public StartAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task