示例#1
0
        private static void SetSweepThreshold(string traceType, ref StoreSettings storeSettings, string sectionName)
        {
            Diagnostics.Assert(string.IsNullOrEmpty(sectionName) == false, traceType, "section name cannot be null or empty");

            if (!storeSettings.SweepThreshold.HasValue)
            {
                storeSettings.SweepThreshold = ConfigStoreUtility.GetUnencryptedIntConfigValue(
                    sectionName,
                    StoreSettingsConfigurationNames.SweepThreshold.Item1,
                    StoreSettingsConfigurationNames.SweepThreshold.Item2);
            }

            Diagnostics.Assert(storeSettings.SweepThreshold.HasValue, traceType, "SweepThreshold must have a value");
        }