Class OAuthTokenRepository
A repository to access OAuth tokens needed for newer exchange versions
Inheritance
System.Object
OAuthTokenRepository
Assembly: Simplic.Framework.dll
Syntax
public class OAuthTokenRepository : SqlRepositoryBase<Guid, OAuthToken>, IOAuthTokenRepository
Constructors
|
Improve this Doc
View Source
OAuthTokenRepository(ISqlService, ISqlColumnService, ICacheService)
Creates a new OAuth token rpository
Declaration
public OAuthTokenRepository(ISqlService sqlService, ISqlColumnService sqlColumnService, ICacheService cacheService)
Parameters
Type |
Name |
Description |
ISqlService |
sqlService |
|
ISqlColumnService |
sqlColumnService |
|
ICacheService |
cacheService |
|
Properties
|
Improve this Doc
View Source
PrimaryKeyColumn
Declaration
public override string PrimaryKeyColumn { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TableName
Declaration
public override string TableName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
UseCache
Declaration
public override bool UseCache { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
GetByUserAndTenantId(Int32, Guid)
Gets the token by the user ID and tenant ID
Declaration
public OAuthToken GetByUserAndTenantId(int userId, Guid tenantId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Guid |
tenantId |
|
Returns
|
Improve this Doc
View Source
GetId(OAuthToken)
Declaration
public override Guid GetId(OAuthToken obj)
Parameters
Returns
Type |
Description |
System.Guid |
|
|
Improve this Doc
View Source
GetIdByUserAndTenantId(Int32, Guid)
Gets the id of the token by the user ID and tenant ID
Declaration
public Guid GetIdByUserAndTenantId(int userId, Guid tenantId)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.Guid |
tenantId |
|
Returns
Type |
Description |
System.Guid |
the token
|
Implements
IRepositoryBase<, >