Location/LocationSettings.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComLib.LocationSupport
{
    /// <summary>
    /// This class is used to hold configuration settings
    /// that define how location information will be handled.
    /// </summary>
    public class LocationSettings
    {
        /// <summary>
        /// Default class constructor.
        /// </summary>
        public LocationSettings()
        {
            CacheCityList = false;
            CacheCityLookup = false;
            CacheCountryList = false;
            CacheCountryLookup = false;
            CacheStateList = false;
            CacheStateLookup = false;
            CacheTimeForCitiesInSeconds = 300;
            CacheTimeForCountriesInSeconds = 300;
            CacheTimeForStatesInSeconds = 300;
        }


        /// <summary>
        /// Get/set whether country list is cached.
        /// </summary>
        public bool CacheCountryList { get; set; }


        /// <summary>
        /// Get/set whether state list is cached.
        /// </summary>
        public bool CacheStateList { get; set; }


        /// <summary>
        /// Get/set whether city list is cached.
        /// </summary>
        public bool CacheCityList { get; set; }


        /// <summary>
        /// Get/set whether country lookup is cached.
        /// </summary>
        public bool CacheCountryLookup { get; set; }


        /// <summary>
        /// Get/set whether the state lookup is cached.
        /// </summary>
        public bool CacheStateLookup { get; set; }


后面还有 24 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。