public DistributedStore(string componentName) { this.IsRestartProcessOnDxStoreModeChange = true; this.StoreSettings = DataStoreSettings.GetStoreConfig(); this.PerfTracker = new PerformanceTracker(); if (this.StoreSettings.Primary == StoreKind.DxStore || this.StoreSettings.Shadow == StoreKind.DxStore) { this.DxStoreKeyFactoryInstance = new DxStoreKeyFactory(componentName, new Func <Exception, Exception>(this.ConstructClusterApiException), null, null, null, false); } this.BaseKeyGenerator = new Func <DxStoreKeyAccessMode, DistributedStore.Context, StoreKind, IDistributedStoreKey>(this.GetBaseKeyByStoreKind); }