public void Open(CachingModeOption cachingMode) { if (cacheMode == CacheModeOption.Write) { cache.OpenForWriting(); } else { cache.OpenForReading(); } }
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); } }