Universal Windows Service Class Library

RecoverAction Enumeration

Enum for recovery actions (correspond to the Win32 equivalents).

public enum RecoverAction

Remarks

This enumeration is used to specify behaviour of service if a service failure occures. The service could simply try to restart or the computer could reboot. Also possible is to run a special command e.g. a executable file.

The properties dialog from service control manager shows only three different failure actions but more are possible. If more than three are configured the dialog box shows only the first three one.

Members

Member NameDescription
None No recover action after service failure.
Restart Service would be restart after service failure.
Reboot Computer would reboot after service failure.
RunCommand Special given command would be started after service failure.

Requirements

Namespace: uws.Install

Assembly: uwsCore (in uwsCore.dll)

See Also

uws.Install Namespace | FailureAction | ExtendedServiceInstaller