refactor: extract interface to separate file
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
namespace StevanFreeborn.Extensions.Configuration.Secure.Configuration;
|
||||||
|
|
||||||
|
internal interface ISecureConfig
|
||||||
|
{
|
||||||
|
Task<bool> DeleteAsync(string key, CancellationToken ct = default);
|
||||||
|
Task<T?> GetAsync<T>(string key, CancellationToken ct = default);
|
||||||
|
Task SetAsync<T>(string key, T value, CancellationToken ct = default);
|
||||||
|
}
|
||||||
@@ -5,13 +5,6 @@ using StevanFreeborn.Extensions.Configuration.Secure.Storage;
|
|||||||
|
|
||||||
namespace StevanFreeborn.Extensions.Configuration.Secure.Configuration;
|
namespace StevanFreeborn.Extensions.Configuration.Secure.Configuration;
|
||||||
|
|
||||||
internal interface ISecureConfig
|
|
||||||
{
|
|
||||||
Task<bool> DeleteAsync(string key, CancellationToken ct = default);
|
|
||||||
Task<T?> GetAsync<T>(string key, CancellationToken ct = default);
|
|
||||||
Task SetAsync<T>(string key, T value, CancellationToken ct = default);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal sealed class SecureConfig(
|
internal sealed class SecureConfig(
|
||||||
ISecureStorageProvider storageProvider,
|
ISecureStorageProvider storageProvider,
|
||||||
ICryptoProvider cryptoProvider
|
ICryptoProvider cryptoProvider
|
||||||
|
|||||||
Reference in New Issue
Block a user