/// <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; }
/// <summary> /// Initializes a new instance of the CloudExecutionEngine class. /// </summary> public CloudExecutionEngine() { // Establish various infrastructure. // TODO: Clean this up. this.virtualIronRoot = Directory.GetCurrentDirectory(); string localCacheDirectory = Path.Combine(this.virtualIronRoot, "nucache"); this.cloudCache = new ItemCacheCloud(); this.multiplexedItemCache = new ItemCacheMultiplexer( new ItemCacheLocal(localCacheDirectory), this.cloudCache, null); Console.WriteLine("Accessing execution queue."); this.mainQueue = new CloudExecutionQueue(); }
public CacheState() { this.cloudCache = new ItemCacheCloud(); this.localCache = new ItemCacheLocal( Path.Combine(GetDefaultIronRoot(), "nucache")); }