예제 #1
0
 private CompanyDataCenter()
 {
     // 有效收款账号,过期时间为半个小时
     _validReceiveCompanyCache = new ChinaPay.Data.Cache <Dictionary <Guid, DataTransferObject.Organization.CompanyListInfo> >
     {
         Timeout = 1800
     };
 }/// <summary>
예제 #2
0
 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();
 }
예제 #3
0
 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
     };
 }
예제 #4
0
 private LocalAVHCache()
 {
     _dataCache         = new Data.Cache <string, IEnumerable <Command.Domain.FlightQuery.Flight> >();
     _dataCache.Timeout = 180;
 }
예제 #5
0
 internal SystemDictionary(SystemDictionaryType type)
 {
     this.Type   = type;
     _itemsCache = new ChinaPay.Data.Cache <Guid, SystemDictionaryItem>();
 }