コード例 #1
0
        // Token: 0x06000028 RID: 40 RVA: 0x000037A8 File Offset: 0x000019A8
        internal static TimeSpan GetConfigTimeSpan(string label, TimeSpan minimumValue, TimeSpan maximumValue, TimeSpan defaultValue)
        {
            TimeSpan result;

            try
            {
                result = TransportAppConfig.GetConfigTimeSpan(label, minimumValue, maximumValue, defaultValue);
            }
            catch (ConfigurationErrorsException)
            {
                result = defaultValue;
            }
            return(result);
        }
コード例 #2
0
        // Token: 0x060000DC RID: 220 RVA: 0x00006B30 File Offset: 0x00004D30
        public static TimeSpan GetConfigTimeSpan(string label, TimeSpan min, TimeSpan max, TimeSpan defaultValue)
        {
            TimeSpan result;

            try
            {
                result = TransportAppConfig.GetConfigTimeSpan(label, min, max, defaultValue);
            }
            catch (ConfigurationErrorsException ex)
            {
                LogSearchService.Logger.LogEvent(MSExchangeTransportLogSearchEventLogConstants.Tuple_ErrorReadingAppConfig, DateTime.UtcNow.Hour.ToString(CultureInfo.InvariantCulture), new object[]
                {
                    ex.ToString()
                });
                result = defaultValue;
            }
            return(result);
        }