namespace ZB.MOM.WW.LmxProxy.Host.Configuration
{
    /// <summary>
    ///     Configuration for Windows service recovery
    /// </summary>
    public class ServiceRecoveryConfiguration
    {
        /// <summary>
        ///     Minutes to wait before restart on first failure
        /// </summary>
        public int FirstFailureDelayMinutes { get; set; } = 1;

        /// <summary>
        ///     Minutes to wait before restart on second failure
        /// </summary>
        public int SecondFailureDelayMinutes { get; set; } = 5;

        /// <summary>
        ///     Minutes to wait before restart on subsequent failures
        /// </summary>
        public int SubsequentFailureDelayMinutes { get; set; } = 10;

        /// <summary>
        ///     Days before resetting the failure count
        /// </summary>
        public int ResetPeriodDays { get; set; } = 1;
    }
}
