Exemple #1
0
        public async Task <bool> DeleteAsync()
        {
            var result = await _dictionaryStore.DeleteAsync(SettingsKey);

            _memoryCache.Remove(SettingsKey);
            return(result);
        }
Exemple #2
0
        public async Task <bool> DeleteAsync()
        {
            var result = await _dictionaryStore.DeleteAsync(Key);

            if (result)
            {
                // Expire cache
                _cacheManager.CancelTokens(this.GetType(), Key);
            }
            return(result);
        }
Exemple #3
0
        public async Task <bool> DeleteAsync()
        {
            var result = await _dictionaryStore.DeleteAsync(SettingsKey);

            if (result)
            {
                _cacheManager.CancelTokens(this.GetType());
                if (_logger.IsEnabled(LogLevel.Information))
                {
                    _logger.LogInformation("Facebook settings deleted");
                }
            }

            return(result);
        }