Add application services for profiles and neutrino
This commit is contained in:
7
RecNet.Application/Common/Interfaces/IConfigService.cs
Normal file
7
RecNet.Application/Common/Interfaces/IConfigService.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace RecNet.Application.Common.Interfaces;
|
||||
|
||||
public interface IConfigService
|
||||
{
|
||||
Task<T?> GetAsync<T>(string key, T? defaultValue = default, CancellationToken ct = default);
|
||||
Task SetAsync<T>(string key, T value, CancellationToken ct = default);
|
||||
}
|
||||
10
RecNet.Application/Common/Interfaces/ITokenService.cs
Normal file
10
RecNet.Application/Common/Interfaces/ITokenService.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using RecNet.Application.Common.Tokens;
|
||||
using RecNet.Domain.Entities.Profiles;
|
||||
|
||||
namespace RecNet.Application.Common.Interfaces;
|
||||
|
||||
public interface ITokenService
|
||||
{
|
||||
TokenResult GenerateProfileToken(Profile profile);
|
||||
TokenVerifyResult VerifyToken(string token);
|
||||
}
|
||||
Reference in New Issue
Block a user