Click or drag to resize
Infosoft Logo

CustomExecutableParametersExpectedExitCode Property

Gets or sets an optional exit code to expect from the program.

Namespace: Infosoft.Common.Contracts.DataContracts.Scheduler.Parameters
Assembly: Infosoft.Common.Contracts (in Infosoft.Common.Contracts.dll) Version: 4.00.0.0
Syntax
public int? ExpectedExitCode { get; set; }

Property Value

NullableInt32
Remarks

This parameter is optional, but when it's set it greatly changes the behavior of the job.

If this parameter is null, the job will be in "fire and forget" mode. It will start the process and then immediately return. This will almost always succeed (as long as the program exists), but there's no way of knowing if the executable finished successfully.

If this parameter is set, the job will wait for the process to finish, and then check the exit code. Normally an exit code of 0 is used for a successful execution, but this value may be set to any integer.

See Also