コード例 #1
0
        private void InitFeatureStore(Data data)
        {
            _projectNameRef.Set(data.projectName);
            _environmentNameRef.Set(data.envName);

            var featureFlags = FlagMapper.GetFeatureFlags(data.flags);
            var flagMap      = featureFlags.ToDictionary(x => x.Key);

            _flagMapReference.Set(flagMap);

            if (!_downloadSuccessful.Get())
            {
                _downloadSuccessful.Set(true);
            }

            if (!_initialDownloadDoneEvent.IsSet)
            {
                _initialDownloadDoneEvent.Signal();
            }
        }
コード例 #2
0
 protected void LoadFeatureFlags()
 {
     _flagMap = FlagMapper.GetFeatureFlags(FlagResponse.data.flags).ToDictionary(x => x.Key);
 }