2023-04-15 15:27:51 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
2023-02-11 22:09:02 -05:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces;
|
|
|
|
|
|
|
|
|
|
public interface IConfigurationHandlerV2<TConfigurationType> where TConfigurationType: class
|
|
|
|
|
{
|
|
|
|
|
Task<TConfigurationType> Get(string configurationName, TConfigurationType defaultConfiguration = null);
|
|
|
|
|
Task Set(TConfigurationType configuration);
|
|
|
|
|
Task Set();
|
2023-04-15 15:27:51 -04:00
|
|
|
|
event Action<TConfigurationType> Updated;
|
2023-02-11 22:09:02 -05:00
|
|
|
|
}
|