示例#1
0
 public static DeviceCache GetInstance()
 {
     if (_cacheInstance == null)
     {
         lock (_syncLock)
         {
             if (_cacheInstance == null)
             {
                 _cacheInstance = new DeviceCache();
             }
         }
     }
     return(_cacheInstance);
 }
示例#2
0
 public CacheOperation()
 {
     _cache = DeviceCache.GetInstance();
 }