// Constructor public FailureAction(RecoverAction actionType, int actionDelay) { this.type = actionType; this.delay = actionDelay; }
// Constructor public FailureAction(RecoverAction actionType, int actionDelay) { Type = actionType; Delay = actionDelay; }
/// <summary> /// Defines a new recover action to be performed upon service failure. /// </summary> /// <param name="recoverAction"><see cref="RecoverAction"/> to execute upon service failure.</param> /// <param name="delay">The time to wait before performing the specified <paramref name="recoverAction"/>, in milliseconds.</param> public void DefineRecoverAction(RecoverAction recoverAction, int delay) { m_failureActions.Add(new WindowsApi.SC_ACTION { Type = (WindowsApi.SC_ACTION_TYPE)(uint)recoverAction, Delay = delay }); }
/// <summary> /// Defines a new recover action to be performed upon service failure. /// </summary> /// <param name="recoverAction"><see cref="RecoverAction"/> to execute upon service failure.</param> /// <param name="delay">The time to wait before performing the specified <paramref name="recoverAction"/>, in milliseconds.</param> public void DefineRecoverAction(RecoverAction recoverAction, int delay) { m_failureActions.Add(new WindowsApi.SC_ACTION { Type = (WindowsApi.SC_ACTION_TYPE)(uint) recoverAction, Delay = delay }); }