Exemplo n.º 1
0
        public static Bug Get(Bug.Enum en)
        {
            Bug result = null;

            lock (thisLock)
            {
                if (!dic.TryGetValue(en, out result))
                {
                    result = new Bug(en);
                    dic.Add(en, result);
                }
            }
            return(result);
        }
Exemplo n.º 2
0
 public static void SetBugCode(CommonParam param, Bug.Enum bugCaseEnum)
 {
     try
     {
         Bug bug = AAS.LibraryBug.DatabaseBug.Get(bugCaseEnum);
         if (bug != null && !param.BugCodes.Contains(bug.code))
         {
             param.BugCodes.Add(bug.code);
         }
     }
     catch (Exception ex)
     {
         LogSystem.Error("Co exception khi SetBugCode.", ex);
     }
 }