Esempio n. 1
0
        private UIDInfo GetErrorInfo(int uid)
        {
            var info = ErrorInfos.FirstOrDefault(i => i.UID == uid);

            if (info == null)
            {
                info = new UIDInfo(uid);
                ErrorInfos.Add(info);
            }
            return(info);
        }
Esempio n. 2
0
 public bool UIDTimeout(UIDInfo info)
 {
     return(DateTime.Now.Subtract(info.CreateTime).TotalMinutes > Settings.Default.UIDProcessTimeout);
 }