Class PersistentGrantRepository
Inheritance
PersistentGrantRepository
Implements
Inherited Members
Namespace: Volo.Abp.IdentityServer.Grants
Assembly: Volo.Abp.IdentityServer.EntityFrameworkCore.dll
Syntax
public class PersistentGrantRepository : EfCoreRepository<IIdentityServerDbContext, PersistedGrant, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<PersistedGrant, Guid>, IEfCoreRepository<PersistedGrant>, IRepository<PersistedGrant, Guid>, IRepository<PersistedGrant>, IReadOnlyRepository<PersistedGrant, Guid>, IReadOnlyRepository<PersistedGrant>, IBasicRepository<PersistedGrant, Guid>, ISupportsExplicitLoading<PersistedGrant>, IPersistentGrantRepository, IBasicRepository<PersistedGrant, Guid>, IBasicRepository<PersistedGrant>, IReadOnlyBasicRepository<PersistedGrant, Guid>, IReadOnlyBasicRepository<PersistedGrant>, IRepository
Constructors
PersistentGrantRepository(IDbContextProvider<IIdentityServerDbContext>)
Declaration
public PersistentGrantRepository(IDbContextProvider<IIdentityServerDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<IIdentityServerDbContext> | dbContextProvider |
Methods
DeleteAsync(string, string, string, string, CancellationToken)
Declaration
public virtual Task DeleteAsync(string subjectId = null, string sessionId = null, string clientId = null, string type = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | subjectId | |
string | sessionId | |
string | clientId | |
string | type | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
DeleteExpirationAsync(DateTime, CancellationToken)
Declaration
public virtual Task DeleteExpirationAsync(DateTime maxExpirationDate, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime | maxExpirationDate | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
FindByKeyAsync(string, CancellationToken)
Declaration
public virtual Task<PersistedGrant> FindByKeyAsync(string key, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | key | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<PersistedGrant> |
GetListAsync(string, string, string, string, bool, CancellationToken)
Declaration
public virtual Task<List<PersistedGrant>> GetListAsync(string subjectId, string sessionId, string clientId, string type, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | subjectId | |
string | sessionId | |
string | clientId | |
string | type | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<PersistedGrant>> |
GetListByExpirationAsync(DateTime, int, CancellationToken)
Declaration
public virtual Task<List<PersistedGrant>> GetListByExpirationAsync(DateTime maxExpirationDate, int maxResultCount, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime | maxExpirationDate | |
int | maxResultCount | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<PersistedGrant>> |
GetListBySubjectIdAsync(string, CancellationToken)
Declaration
public virtual Task<List<PersistedGrant>> GetListBySubjectIdAsync(string subjectId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | subjectId | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<PersistedGrant>> |