Пример #1
0
 public static CacheBiz GetInstant(string pathBase)
 {
     if (Instant == null)
     {
         lock (lockHelper)
         {
             if (Instant == null)
             {
                 Instant = new CacheBiz(pathBase);
             }
         }
     }
     return(Instant);
 }
Пример #2
0
        public static CacheBiz GetInstant(string pathBase)
        {
            if (Instant == null)
            {
                lock (lockHelper)
                {
                    if (Instant == null)
                    {
                        Instant = new CacheBiz(pathBase);
                    }
                }

            }
            return Instant;
        }