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

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

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