![]() |
GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
|
Public Member Functions | |
| IAllowExecutableSetup | WithExecutable (string executable) |
| IAllowExecutableSetup | WithName (string name) |
| IAllowExecutableSetup | WithArgument (string argument) |
| IAllowExecutableSetup | WithWorkingDirectory (string directory) |
| The directory the process starts in. Said before Launch, because the working directory is part of how a process is started and cannot be changed once it is running. | |
| IAllowExecutableSetup | WithEnvironmentVariable (string name, string value) |
| One environment variable the process starts with. Called once per variable. The process inherits this one's environment, so this adds to what is already there rather than replacing it. | |
| IAllowExecutableSetup | WithOutputTo (Action< string > outputHandler) |
| Where each line the process writes to standard output goes. Said before Launch: reading a process's output is decided as it starts, so a handler given afterwards would never see a line. | |
| IAllowExecutableSetup | WithErrorTo (Action< string > errorHandler) |
| Where each line the process writes to standard error goes. Said before Launch, for the same reason as WithOutputTo. | |
| IAllowRunningExecutable | Launch () |
| bool | IsRunning () |
| Whether the process is still running. False before Launch, and false once it has ended, so a workflow can ask without minding which. | |
| IAllowWaitingExecutable | WaitForExit (int milliseconds) |
| Wait up to this many milliseconds for the process to end. | |
| void | Kill () |
| Stop the process. What it started keeps running; KillTree is for those. | |
| void | KillTree () |
| Stop the process and everything it started, children first so nothing is orphaned. | |
| Launcher | ToGPALObject () |
Properties | |
| string | Name [get, set] |
| string | Executable [get, set] |
Definition at line 29 of file Launcher.cs.
| GenerallyPositive.Launcher.Launcher | ( | ) |
Definition at line 42 of file Launcher.cs.
| bool GenerallyPositive.Launcher.IsRunning | ( | ) |
Whether the process is still running.
False before Launch, and false once it has ended, so a workflow can ask without minding which.
Implements GenerallyPositive.IAllowRunningExecutable.
Definition at line 256 of file Launcher.cs.
| void GenerallyPositive.Launcher.Kill | ( | ) |
Stop the process. What it started keeps running; KillTree is for those.
Implements GenerallyPositive.IAllowWaitingExecutable.
Definition at line 282 of file Launcher.cs.
| void GenerallyPositive.Launcher.KillTree | ( | ) |
Stop the process and everything it started, children first so nothing is orphaned.
Implements GenerallyPositive.IAllowWaitingExecutable.
Definition at line 294 of file Launcher.cs.
| IAllowRunningExecutable GenerallyPositive.Launcher.Launch | ( | ) |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 175 of file Launcher.cs.
| Launcher GenerallyPositive.Launcher.ToGPALObject | ( | ) |
Implements GenerallyPositive.IAllowToGPALObject< TResult >.
Definition at line 331 of file Launcher.cs.
| IAllowWaitingExecutable GenerallyPositive.Launcher.WaitForExit | ( | int | milliseconds | ) |
Wait up to this many milliseconds for the process to end.
| milliseconds | How long to wait |
Implements GenerallyPositive.IAllowRunningExecutable.
Definition at line 268 of file Launcher.cs.
| IAllowExecutableSetup GenerallyPositive.Launcher.WithArgument | ( | string | argument | ) |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 57 of file Launcher.cs.
| IAllowExecutableSetup GenerallyPositive.Launcher.WithEnvironmentVariable | ( | string | name, |
| string | value ) |
One environment variable the process starts with. Called once per variable.
The process inherits this one's environment, so this adds to what is already there rather than replacing it.
| name | The variable's name |
| value | What it is set to |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 100 of file Launcher.cs.
| IAllowExecutableSetup GenerallyPositive.Launcher.WithErrorTo | ( | Action< string > | errorHandler | ) |
Where each line the process writes to standard error goes. Said before Launch, for the same reason as WithOutputTo.
| errorHandler | Called once per line |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 131 of file Launcher.cs.
| IAllowExecutableSetup GenerallyPositive.Launcher.WithExecutable | ( | string | executable | ) |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 46 of file Launcher.cs.
| IAllowExecutableSetup GenerallyPositive.Launcher.WithName | ( | string | name | ) |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 52 of file Launcher.cs.
| IAllowExecutableSetup GenerallyPositive.Launcher.WithOutputTo | ( | Action< string > | outputHandler | ) |
Where each line the process writes to standard output goes.
Said before Launch: reading a process's output is decided as it starts, so a handler given afterwards would never see a line.
| outputHandler | Called once per line |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 119 of file Launcher.cs.
| IAllowExecutableSetup GenerallyPositive.Launcher.WithWorkingDirectory | ( | string | directory | ) |
The directory the process starts in.
Said before Launch, because the working directory is part of how a process is started and cannot be changed once it is running.
| directory | The directory to start in |
Implements GenerallyPositive.IAllowExecutableSetup.
Definition at line 80 of file Launcher.cs.
|
getset |
Definition at line 32 of file Launcher.cs.
|
getset |
Definition at line 31 of file Launcher.cs.