C# Class GlobWatch.CommandRunner

Runs commands when file system changes occur.
Exibir arquivo Open project: mdschweda/globwatch

Public Methods

Method Description
CommandRunner ( IConfiguration config ) : System

Initializes a new instance of the CommandRunner class.

Run ( CancellationToken cancellationToken ) : Task

Starts watching the file system.

Private Methods

Method Description
ErrorReceived ( object sender, DataReceivedEventArgs e ) : void
OutputReceived ( object sender, DataReceivedEventArgs e ) : void
RunCommand ( object sender, WaitForChangedResult e ) : void

Method Details

CommandRunner() public method

Initializes a new instance of the CommandRunner class.
public CommandRunner ( IConfiguration config ) : System
config IConfiguration The configuration to use.
return System

Run() public method

Starts watching the file system.
public Run ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken /// A cancellation token that should be used to cancel the watching task. ///
return Task