Exemple #1
0
 public static CacheBiz GetInstant(string pathBase)
 {
     if (Instant == null)
     {
         lock (lockHelper)
         {
             if (Instant == null)
             {
                 Instant = new CacheBiz(pathBase);
             }
         }
     }
     return(Instant);
 }
Exemple #2
0
        public static CacheBiz GetInstant(string pathBase)
        {
            if (Instant == null)
            {
                lock (lockHelper)
                {
                    if (Instant == null)
                    {
                        Instant = new CacheBiz(pathBase);
                    }
                }

            }
            return Instant;
        }