Adds a new process that will be started when in the preview command.
- Namespace
- Statiq
.Web - Containing Type
- Bootstrapper
Process Extensions
Syntax
public static TBootstrapper AddPreviewProcess<TBootstrapper>(this TBootstrapper bootstrapper, ProcessTiming processTiming, bool waitForExit, Func<IExecutionState, ProcessLauncher> getProcessLauncher)
where TBootstrapper : IBootstrapper
Type Parameters
Name | Description |
---|---|
TBootstrapper |
Parameters
Name | Type | Description |
---|---|---|
bootstrapper | TBootstrapper | The current bootstrapper. |
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 |
---|---|
TBootstrapper | The bootstrapper. |