Adds a new process.
- Namespace
- Statiq
.Web - Containing Type
- ProcessesExtensions
Syntax
public static Processes AddProcess(this Processes processes, ProcessTiming processTiming, bool waitForExit, Func<IExecutionState, ProcessLauncher> getProcessLauncher)
Parameters
Name | Type | Description |
---|---|---|
processes | Processes | The processes collection. |
processTiming | ProcessTiming | When to start the process. |
waitForExit | bool |
true to wait for this process to exit before the next process timing phase, false to allow it to continue running in the background.
This flag is only needed when IsBackground is true , otherwise the process will block until it exits.
|
getProcessLauncher | Func |
A factory that returns a process launcher. |
Return Value
Type | Description |
---|---|
Processes | The process collection. |