Class MongoPersistentGrantRepository
Inheritance
MongoPersistentGrantRepository
Implements
Inherited Members
Namespace: Volo.Abp.IdentityServer.MongoDB
Assembly: Volo.Abp.IdentityServer.MongoDB.dll
Syntax
public class MongoPersistentGrantRepository : MongoDbRepository<IAbpIdentityServerMongoDbContext, PersistedGrant, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IMongoDbRepository<PersistedGrant, Guid>, IMongoDbRepository<PersistedGrant>, IRepository<PersistedGrant, Guid>, IRepository<PersistedGrant>, IReadOnlyRepository<PersistedGrant, Guid>, IReadOnlyRepository<PersistedGrant>, IBasicRepository<PersistedGrant, Guid>, IPersistentGrantRepository, IBasicRepository<PersistedGrant, Guid>, IBasicRepository<PersistedGrant>, IReadOnlyBasicRepository<PersistedGrant, Guid>, IReadOnlyBasicRepository<PersistedGrant>, IRepository
Constructors
MongoPersistentGrantRepository(IMongoDbContextProvider<IAbpIdentityServerMongoDbContext>)
Declaration
public MongoPersistentGrantRepository(IMongoDbContextProvider<IAbpIdentityServerMongoDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IMongoDbContextProvider<IAbpIdentityServerMongoDbContext> | 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 |
DeleteAsync(string, string, string, CancellationToken)
Declaration
public virtual Task DeleteAsync(string subjectId, string clientId, string type, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | subjectId | |
string | clientId | |
string | type | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
DeleteAsync(string, string, CancellationToken)
Declaration
public virtual Task DeleteAsync(string subjectId, string clientId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | subjectId | |
string | clientId | |
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>> |