Initial commit.
This commit is contained in:
22
Wino.Core/Authenticators/BaseAuthenticator.cs
Normal file
22
Wino.Core/Authenticators/BaseAuthenticator.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Threading.Tasks;
|
||||
using Wino.Core.Domain.Entities;
|
||||
using Wino.Core.Domain.Enums;
|
||||
using Wino.Core.Services;
|
||||
|
||||
namespace Wino.Core.Authenticators
|
||||
{
|
||||
public abstract class BaseAuthenticator
|
||||
{
|
||||
public abstract MailProviderType ProviderType { get; }
|
||||
|
||||
protected ITokenService TokenService { get; }
|
||||
|
||||
protected BaseAuthenticator(ITokenService tokenService)
|
||||
{
|
||||
TokenService = tokenService;
|
||||
}
|
||||
|
||||
internal Task SaveTokenInternalAsync(MailAccount account, TokenInformation tokenInformation)
|
||||
=> TokenService.SaveTokenInformationAsync(account.Id, tokenInformation);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user