示例#1
0
 public void Open(CachingModeOption cachingMode)
 {
     if (cachingMode == CachingModeOption.Reading)
     {
         activeCachingMode = cachingMode;
         cacheReader.BeginReading(CACHE_CONFIG_FILE);
     }
     else if (cachingMode == CachingModeOption.Writing)
     {
         activeCachingMode = cachingMode;
         cacheWriter.BeginWriting(CACHE_CONFIG_FILE);
     }
 }
示例#2
0
 public bool OpenForReading()
 {
     writeMode = false;
     cacheReader.BeginReading(header.IdentityCode);
     return(true);
 }