using System; using System.Threading.Tasks; using Kyoo.Models; using Kyoo.Models.Exceptions; namespace Kyoo.Controllers { /// /// A class to ease configuration management. This work WITH Microsoft's package, you can still use IOptions patterns /// to access your options, this manager ease dynamic work and editing. /// It works with . /// public interface IConfigurationManager { /// /// Edit the value of a setting using it's path. Save it to the json file. /// /// The path of the resource (can be separated by ':' or '__' /// The new value of the resource /// The type of the resource /// No setting found at the given path. Task EditValue(string path, T value); /// /// Edit the value of a setting using it's path. Save it to the json file. /// /// The path of the resource (can be separated by ':' or '__' /// The new value of the resource /// The type of the resource /// No setting found at the given path. Task EditValue(string path, object value, Type type); } }