Interface IOAuthTokenRepository
A repository to access OAuth tokens needed for newer exchange versions
Namespace: Simplic.Framework.Mailing
Assembly: Simplic.Framework.dll
Syntax
public interface IOAuthTokenRepository
Methods
| Improve this Doc View SourceGetByUserAndTenantId(Int32, Guid)
Gets the token by the user ID and tenant ID
Declaration
OAuthToken GetByUserAndTenantId(int userId, Guid tenantId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | userId | |
System.Guid | tenantId |
Returns
Type | Description |
---|---|
OAuthToken | the token |
GetIdByUserAndTenantId(Int32, Guid)
Gets the id of the token by the user ID and tenant ID
Declaration
Guid GetIdByUserAndTenantId(int userId, Guid tenantId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | userId | |
System.Guid | tenantId |
Returns
Type | Description |
---|---|
System.Guid | the token |