/// <inheritdoc/> public async Task <string> GetValueAsync(int tenantId, string name) { var feature = _featureManager.Get(name); var value = await FeatureValueStore.GetValueOrNullAsync(tenantId, feature); return(value ?? feature.DefaultValue); }
/// <inheritdoc/> public string GetValue(int tenantId, string name) { var feature = _featureManager.Get(name); var value = FeatureValueStore.GetValueOrNull(tenantId, feature); return(value ?? feature.DefaultValue); }
public EditionManager( IRepository<Edition> editionRepository, FeatureValueStore featureValueStore) : base(editionRepository, featureValueStore) { }
public FeatureValueStoreTests() { _cacheManager = Resolve <ICacheManager>(); _featureValueStore = Resolve <FeatureValueStore>(); _tenantFeatureRepository = Resolve <IRepository <TenantFeatureSetting, long> >(); _tenantRepository = Resolve <IRepository <Tenant> >(); _unitOfWorkManager = Resolve <IUnitOfWorkManager>(); }
public EditionManager( IRepository <Edition> editionRepository, FeatureValueStore featureValueStore) : base( editionRepository, featureValueStore) { }