private static TimeSpan GetRequestTimeoutFromAppConfig() { TimeSpan lowerBound = TimeSpan.FromSeconds(1.0); TimeSpan upperBound = TimeSpan.FromMinutes(60.0); return(EhfSyncAppConfig.GetConfigTimeSpan("EhfRequestTimeout", lowerBound, upperBound, EhfSyncAppConfig.DefaultRequestTimeout)); }
private static TimeSpan GetEhfAdminSyncIntervalFromAppConfig() { TimeSpan lowerBound = TimeSpan.FromSeconds(1.0); TimeSpan maxValue = TimeSpan.MaxValue; return(EhfSyncAppConfig.GetConfigTimeSpan("EhfAdminSyncInterval", lowerBound, maxValue, EhfSyncAppConfig.DefaultEhfAdminSyncInterval)); }