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

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

            if (result)
            {
                // Expire cache
                _cacheManager.CancelTokens(this.GetType(), Key);
            }
            return(result);
        }
예제 #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);
        }