public CachedWriteMemoryStream(IOConnectionInfo ioc, CachingFileStorage cachingFileStorage, bool useFileTransaction) { this.ioc = ioc; _cachingFileStorage = cachingFileStorage; _useFileTransaction = useFileTransaction; }
public CachedWriteTransaction(IOConnectionInfo ioc, bool useFileTransaction, CachingFileStorage cachingFileStorage) { _ioc = ioc; _useFileTransaction = useFileTransaction; _cachingFileStorage = cachingFileStorage; }
private void SetupFileStorage() { _testFileStorage = new TestFileStorage(new TestKp2aApp()); _testCacheSupervisor = new TestCacheSupervisor(); //_fileStorage = new CachingFileStorage(_testFileStorage, Application.Context.CacheDir.Path, _testCacheSupervisor); _fileStorage = new CachingFileStorage(_testFileStorage, "/mnt/sdcard/kp2atest_cache", _testCacheSupervisor); _fileStorage.ClearCache(); File.WriteAllText(CachingTestFile, _defaultCacheFileContents); }