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); } }
public bool OpenForReading() { writeMode = false; cacheReader.BeginReading(header.IdentityCode); return(true); }