ToolSettingsExtensions.

WithHandleExitCode<T>(T, Func<int, bool>) Method

Summary

Sets delegate whether the exit code from the tool process causes an exception to be thrown.
Namespace
Cake.Core.Tooling
Containing Type
ToolSettingsExtensions

Syntax

public static T WithHandleExitCode<T>(this T toolSettings, Func<int, bool> handleExitCode) 
    where T : ToolSettings

Type Parameters

Name Description
T The ToolSettings type.

Parameters

Name Type Description
toolSettings T The tools settings.
handleExitCode Func<int, bool> The tool handle exit code delegate.

Return Value

Type Description
T The tools settings.