コード例 #1
0
        public async Task RemoveAllAsync(string subjectId,
                                         string clientId)
        {
            try
            {
                var result = await _persistedGrantService.RemoveBySubjectIdAndClientId(_userId, subjectId, clientId);

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