Esempio n. 1
0
 public CachedWriteMemoryStream(IOConnectionInfo ioc, CachingFileStorage cachingFileStorage, bool useFileTransaction)
 {
     this.ioc = ioc;
     _cachingFileStorage = cachingFileStorage;
     _useFileTransaction = useFileTransaction;
 }
Esempio n. 2
0
 public CachedWriteTransaction(IOConnectionInfo ioc, bool useFileTransaction, CachingFileStorage cachingFileStorage)
 {
     _ioc = ioc;
     _useFileTransaction = useFileTransaction;
     _cachingFileStorage = cachingFileStorage;
 }
Esempio n. 3
0
 public CachedWriteTransaction(IOConnectionInfo ioc, bool useFileTransaction, CachingFileStorage cachingFileStorage)
 {
     _ioc = ioc;
     _useFileTransaction = useFileTransaction;
     _cachingFileStorage = cachingFileStorage;
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 public CachedWriteMemoryStream(IOConnectionInfo ioc, CachingFileStorage cachingFileStorage, bool useFileTransaction)
 {
     this.ioc            = ioc;
     _cachingFileStorage = cachingFileStorage;
     _useFileTransaction = useFileTransaction;
 }