public virtual async Task DeleteAsync(string name, string providerName, string providerKey)
        {
            var featureValue = await FeatureValueRepository.FindAsync(name, providerName, providerKey);

            if (featureValue != null)
            {
                await FeatureValueRepository.DeleteAsync(featureValue);
            }
        }
Example #2
0
        public async Task DeleteAsync(string name, string providerName, string providerKey)
        {
            var featureValue = await FeatureValueRepository.FindAsync(name, providerName, providerKey).ConfigureAwait(false);

            if (featureValue != null)
            {
                await FeatureValueRepository.DeleteAsync(featureValue).ConfigureAwait(false);
            }
        }
Example #3
0
        public virtual async Task DeleteAsync(string name, string providerName, string providerKey)
        {
            var featureValues = await FeatureValueRepository.FindAllAsync(name, providerName, providerKey);

            foreach (var featureValue in featureValues)
            {
                await FeatureValueRepository.DeleteAsync(featureValue);
            }
        }
Example #4
0
    public virtual async Task DeleteAsync(string name, string providerName, string providerKey)
    {
        var featureValues = await FeatureValueRepository.FindAllAsync(name, providerName, providerKey);

        foreach (var featureValue in featureValues)
        {
            await FeatureValueRepository.DeleteAsync(featureValue);

            await Cache.RemoveAsync(CalculateCacheKey(name, providerName, providerKey), considerUow : true);
        }
    }