/// <summary> /// Specifies behaviour of the library when there's an exception in onException /// </summary> /// <param name="onExceptionExceptionBehaviour">Behaviour that determines what happens if there's an exception in on exception callback</param> /// <returns>Itself</returns> public IEnsuredAction WithExceptionInOnExceptionBehaviour(AfterActionConfig onExceptionExceptionBehaviour) { if (onExceptionExceptionBehaviour != null) { config.OnExceptionExceptionBehaviour = onExceptionExceptionBehaviour; } return(this); }
public EnsuredActionConfig() { NumberOfTimes = 1; ActionId = string.Empty; Action = null; OnException = (exception, state) => new AfterActionConfig(); Storage = null; OnExceptionExceptionBehaviour = new AfterActionConfig(); StorageCheckIntervalMs = 6000; BetweenActionsIntervalMs = 0; HeartBeatIntervalMs = 3000; HeartBeatTimeoutMs = HeartBeatIntervalMs * 3; ShowDebug = false; }