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