public void Setup() { CacheManagerSettings settings = new CacheManagerSettings(); settings.EncryptionProviders.Add(new SymmetricStorageEncryptionProviderData("symm storage encryption", "default")); registrations = settings.GetRegistrations(null); }
public void Setup() { CacheManagerSettings settings = new CacheManagerSettings(); settings.BackingStores.Add(new DataCacheStorageData("Data Cache Storage", "db instance", "partition")); registrations = settings.GetRegistrations(null); }
public void Setup() { CustomCacheStorageData customStorageData = new CustomCacheStorageData("Custom Storage", typeof(MockCustomStorageBackingStore)); CacheManagerData cacheManagerData = new CacheManagerData("Default Cache Manager", 10, 10, 10, customStorageData.Name); CacheManagerSettings settings = new CacheManagerSettings(); settings.CacheManagers.Add(cacheManagerData); settings.BackingStores.Add(customStorageData); registrations = settings.GetRegistrations(null); }
public void Setup() { IsolatedStorageCacheStorageData isolatedStorageData = new IsolatedStorageCacheStorageData("Isolated Storage", string.Empty, "part"); CacheManagerData cacheManagerData = new CacheManagerData("Default Cache Manager", 10, 10, 10, isolatedStorageData.Name); CacheManagerSettings settings = new CacheManagerSettings(); settings.CacheManagers.Add(cacheManagerData); settings.BackingStores.Add(isolatedStorageData); registrations = settings.GetRegistrations(null); }
public void Setup() { CacheStorageData cacheStorageData = new CacheStorageData("Null Storage", typeof(NullBackingStore)); CacheManagerData cacheManagerData = new CacheManagerData("Default Cache Manager", 10, 10, 10, cacheStorageData.Name); CacheManagerSettings settings = new CacheManagerSettings(); settings.CacheManagers.Add(cacheManagerData); settings.BackingStores.Add(cacheStorageData); settings.DefaultCacheManager = cacheManagerData.Name; registrations = settings.GetRegistrations(null); }
public void Setup() { CacheManagerSettings settings = new CacheManagerSettings(); registrations = settings.GetRegistrations(null); }