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

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