AddNonPreviewProcess(Processes, ProcessTiming, bool, Func<IExecutionState, ProcessLauncher>) Method
Adds a new process that will be started when not in the preview command.
Namespace
Statiq.Web
Containing Type
ProcessesExtensions

Syntax

public static Processes AddNonPreviewProcess(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<IExecutionState, ProcessLauncher> A factory that returns a process launcher.

Return Value

Type Description
Processes The process collection.