CancellationExitCode(IConfigurator, int) Method

Tells the command line application to return the specified exit code when it's aborted through the System.Threading.CancellationToken. The default cancellation exit code is 130.
public static IConfigurator CancellationExitCode(this IConfigurator configurator, int exitCode)
Containing Type
ConfiguratorExtensions

Parameters

IConfigurator configurator
The configurator.
int exitCode
The exit code to return in case of cancellation.

Returns