AddNonPreviewProcess<TBootstrapper>(TBootstrapper, 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
BootstrapperProcessExtensions

Syntax

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

Return Value

Type Description
TBootstrapper The bootstrapper.