/// <summary>
 /// Initializes a new instance of the ItemCacheMultiplexer class.
 /// </summary>
 /// <param name="localCache">A local cache instance.</param>
 /// <param name="cloudCache">A cloud cache instance.</param>
 /// <param name="backgroundWorker">A background worker instance.</param>
 public ItemCacheMultiplexer(
     ItemCacheLocal localCache,
     ItemCacheCloud cloudCache,
     BackgroundWorker backgroundWorker)
 {
     this.localCache       = localCache;
     this.cloudCache       = cloudCache;
     this.backgroundWorker = backgroundWorker;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the ItemCacheMultiplexer class.
 /// </summary>
 /// <param name="localCache">A local cache instance.</param>
 /// <param name="cloudCache">A cloud cache instance.</param>
 /// <param name="backgroundWorker">A background worker instance.</param>
 public ItemCacheMultiplexer(
     ItemCacheLocal localCache,
     ItemCacheCloud cloudCache,
     BackgroundWorker backgroundWorker)
 {
     this.localCache = localCache;
     this.cloudCache = cloudCache;
     this.backgroundWorker = backgroundWorker;
 }
Esempio n. 3
0
 public CacheState()
 {
     this.cloudCache = new ItemCacheCloud();
     this.localCache = new ItemCacheLocal(
         Path.Combine(GetDefaultIronRoot(), "nucache"));
 }