示例#1
0
        public async Task RemoveAsync(string key)
        {
            try
            {
                var result = await _persistedGrantService.RemoveByKey(_userId, key);

                if (result.IsSuccess)
                {
                    _logger.LogInformation($"Remove persisted grant with key {key} success");
                }
                else
                {
                    _logger.LogInformation($"Can not remove persisted grant with key {key}: {result.Message}");
                }
            }
            catch (Exception exception)
            {
                _logger.LogInformation($"Can not remove persisted grant with key {key}: {exception}");
            }
        }