Пример #1
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;
 }
Пример #2
0
 public Program()
 {
     this.useCloudExecution = false;
     this.useCloudCache = true;
     this.backgroundWorker = new BackgroundWorker();
 }