コード例 #1
0
        private DataBackingStore CreateDataBackingStore()
        {
            DataCacheStorageData data = new DataCacheStorageData();

            data.DatabaseInstanceName = "CachingDatabase";
            data.PartitionName        = "Partition1";
            DataBackingStore backingStore = new DataBackingStore();

            backingStore.Initialize(new TestCachingConfigurationView(data, Context));
            return(backingStore);
        }
コード例 #2
0
        private DataBackingStore CreateBackingStore(string instanceName, string partitionName)
        {
            DataCacheStorageData data = new DataCacheStorageData();

            data.DatabaseInstanceName = instanceName;
            data.PartitionName        = partitionName;
            DataBackingStore backingStore = new DataBackingStore();

            backingStore.Initialize(new TestCachingConfigurationView(data, Context));

            return(backingStore);
        }
コード例 #3
0
        public override void FixtureSetup()
        {
            base.FixtureSetup ();
            DataCacheStorageData firstCacheData = new DataCacheStorageData();
            firstCacheData.DatabaseInstanceName = "CachingDatabase";
            firstCacheData.PartitionName = "Partition1";

            firstCache = new DataBackingStore();
            firstCache.Initialize(new TestCachingConfigurationView(firstCacheData, Context));

            DataCacheStorageData secondCacheData = new DataCacheStorageData();
            secondCacheData.DatabaseInstanceName = "CachingDatabase";
            secondCacheData.PartitionName = "Partition2";

            secondCache = new DataBackingStore();
            secondCache.Initialize(new TestCachingConfigurationView(secondCacheData, Context));
        }
コード例 #4
0
        public override void FixtureSetup()
        {
            base.FixtureSetup();
            DataCacheStorageData firstCacheData = new DataCacheStorageData();

            firstCacheData.DatabaseInstanceName = "CachingDatabase";
            firstCacheData.PartitionName        = "Partition1";

            firstCache = new DataBackingStore();
            firstCache.Initialize(new TestCachingConfigurationView(firstCacheData, Context));

            DataCacheStorageData secondCacheData = new DataCacheStorageData();

            secondCacheData.DatabaseInstanceName = "CachingDatabase";
            secondCacheData.PartitionName        = "Partition2";

            secondCache = new DataBackingStore();
            secondCache.Initialize(new TestCachingConfigurationView(secondCacheData, Context));
        }
コード例 #5
0
 private DataBackingStore CreateDataBackingStore()
 {
     DataCacheStorageData data = new DataCacheStorageData();
     data.DatabaseInstanceName = "CachingDatabase";
     data.PartitionName = "Partition1";
     DataBackingStore backingStore = new DataBackingStore();
     backingStore.Initialize(new TestCachingConfigurationView(data, Context));
     return backingStore;
 }
コード例 #6
0
        private DataBackingStore CreateBackingStore(string instanceName, string partitionName)
        {
            DataCacheStorageData data = new DataCacheStorageData();
            data.DatabaseInstanceName = instanceName;
            data.PartitionName = partitionName;
            DataBackingStore backingStore = new DataBackingStore();
            backingStore.Initialize(new TestCachingConfigurationView(data, Context));

            return backingStore;
        }