Adds support for Secrets
This commit is contained in:
Trevor Payne
2021-04-15 18:47:13 -05:00
parent babc3e4f1a
commit 2787c7fc52
5 changed files with 95 additions and 85 deletions

View File

@@ -2,6 +2,9 @@
namespace PepperDash.Essentials.Core
{
/// <summary>
/// All ISecrecretProvider classes must implement this interface.
/// </summary>
public interface ISecretProvider : IKeyed
{
void SetSecret(string key, object value);
@@ -9,6 +12,9 @@ namespace PepperDash.Essentials.Core
ISecret GetSecret(string key);
}
/// <summary>
/// interface for delivering secrets in Essentials.
/// </summary>
public interface ISecret
{
ISecretProvider Provider { get; }