private CompanyDataCenter() { // 有效收款账号,过期时间为半个小时 _validReceiveCompanyCache = new ChinaPay.Data.Cache <Dictionary <Guid, DataTransferObject.Organization.CompanyListInfo> > { Timeout = 1800 }; }/// <summary>
private SystemDictionarys() { _datasCache = new ChinaPay.Data.Cache <SystemDictionaryType, SystemDictionary>(); _datasCache.AddRange(getSystemDictionarys()); _timer = new Timer(); _timer.Interval = _interval; _timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed); RefreshService.ServicePhoneChanged += refreshData; _timer.Start(); }
private DataCenter() { // 上下级关系,过期时间为24小时 _superiorCache = new ChinaPay.Data.Cache <Guid, SuperiorInfo> { Timeout = 24 * 60 * 60 }; // 有效收款账号,过期时间为5分钟 _validReceiveAccountCache = new ChinaPay.Data.Cache <Dictionary <Guid, Organization.Domain.Account> > { Timeout = 300 }; }
private LocalAVHCache() { _dataCache = new Data.Cache <string, IEnumerable <Command.Domain.FlightQuery.Flight> >(); _dataCache.Timeout = 180; }
internal SystemDictionary(SystemDictionaryType type) { this.Type = type; _itemsCache = new ChinaPay.Data.Cache <Guid, SystemDictionaryItem>(); }