public async Task RemoveAllAsync(string subjectId, string clientId)
        {
            var persistedGrants = await _persistedgrantprovider.GetAll(subjectId, clientId);


            await _persistedgrantprovider.RemoveAll(subjectId, clientId);
        }
        public Task RemoveAllAsync(string subjectId, string clientId)
        {
            var persistedGrants = _persistedgrantprovider.GetAll(subjectId, clientId).AsEnumerable();

            _logger.LogDebug("removing {persistedGrantCount} persisted grants from database for subject {subjectId}, clientId {clientId}", persistedGrants.Count(), subjectId, clientId);

            try
            {
                _persistedgrantprovider.RemoveAll(subjectId, clientId);
            }
            catch (Exception ex)
            {
                _logger.LogInformation("removing {persistedGrantCount} persisted grants from database for subject {subjectId}, clientId {clientId}: {error}", persistedGrants.Count(), subjectId, clientId, ex.Message);
            }
            return(Task.FromResult(0));
        }
Example #3
0
 public async Task RemoveAllAsync(PersistedGrantFilter filter)
 {
     //throw new NotImplementedException();
     await _persistedGrantProvider.RemoveAll(filter.SubjectId, filter.ClientId, filter.Type);
 }