예제 #1
0
        public CacheState()
        {
            this.cloudCache = new ItemCacheCloud();
            this.localCache = new ItemCacheLocal(
                Path.Combine(GetDefaultIronRoot(), "nucache"));

            int containerCount = Enum.GetValues(typeof(ItemCacheContainer)).Length;

            this.cloudItems = new HashSet <string> [containerCount];
            this.localItems = new HashSet <string> [containerCount];
        }
예제 #2
0
        /// <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();
        }
예제 #3
0
 public CacheState()
 {
     this.cloudCache = new ItemCacheCloud();
     this.localCache = new ItemCacheLocal(
         Path.Combine(GetDefaultIronRoot(), "nucache"));
 }