IW4M-Admin/SharedLibraryCore/Interfaces/IConfigurationHandlerV2.cs

13 lines
404 B
C#

using System;
using System.Threading.Tasks;
namespace SharedLibraryCore.Interfaces;
public interface IConfigurationHandlerV2<TConfigurationType> where TConfigurationType: class
{
Task<TConfigurationType> Get(string configurationName, TConfigurationType defaultConfiguration = null);
Task Set(TConfigurationType configuration);
Task Set();
event Action<TConfigurationType> Updated;
}