API Reference
Class
WindowsServiceRecoveryOptions
Describes recovery policy options for a Windows service.
Inheritance
- Object
- WindowsServiceRecoveryOptions
Constructors
public WindowsServiceRecoveryOptions() #Methods
public static WindowsServiceRecoveryOptions CreateRestartOnly(TimeSpan resetPeriod, TimeSpan firstDelay, TimeSpan secondDelay, TimeSpan subsequentDelay) #Returns:
WindowsServiceRecoveryOptionsCreates a recovery policy that restarts the service after the first, second, and subsequent failures.
Parameters
- resetPeriod System.TimeSpan
- firstDelay System.TimeSpan
- secondDelay System.TimeSpan
- subsequentDelay System.TimeSpan
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public TimeSpan ResetPeriod { get; set; } #Gets or sets the period after which Windows resets the failure count.
public String RebootMessage { get; set; } #Gets or sets the message broadcast before a reboot action.
public String Command { get; set; } #Gets or sets the command executed for RunCommand.
public IReadOnlyList<WindowsServiceRecoveryAction> Actions { get; set; } #Gets or sets the ordered recovery actions.