refactor: extract interface to separate file

This commit is contained in:
Stevan Freeborn
2026-04-01 12:46:21 -05:00
parent f69317efe5
commit af7ba5feab
2 changed files with 8 additions and 7 deletions
@@ -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;
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(
ISecureStorageProvider storageProvider,
ICryptoProvider cryptoProvider