// Token: 0x0600054C RID: 1356 RVA: 0x00013FAC File Offset: 0x000121AC
        public static DataStoreSettings GetStoreConfig()
        {
            IActiveManagerSettings settings          = DxStoreSetting.Instance.GetSettings();
            DxStoreMode            dxStoreRunMode    = settings.DxStoreRunMode;
            DataStoreSettings      dataStoreSettings = new DataStoreSettings();

            if (dxStoreRunMode == DxStoreMode.Shadow)
            {
                dataStoreSettings.Primary = StoreKind.Clusdb;
                dataStoreSettings.Shadow  = StoreKind.DxStore;
                dataStoreSettings.IsCompositeModeEnabled = true;
            }
            else if (dxStoreRunMode == DxStoreMode.Primary)
            {
                dataStoreSettings.Primary = StoreKind.DxStore;
                dataStoreSettings.Shadow  = StoreKind.None;
                dataStoreSettings.IsCompositeModeEnabled = true;
            }
            else
            {
                dataStoreSettings.Primary = StoreKind.Clusdb;
                dataStoreSettings.Shadow  = StoreKind.None;
                dataStoreSettings.IsCompositeModeEnabled = false;
            }
            return(dataStoreSettings);
        }
 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);
 }