Files
CaddyManager/CaddyManager.Contracts/Configurations/IConfigurationsService.cs
Duy Dao 5d5888c6e7
All checks were successful
Caddy Manager CI build / docker (push) Successful in 1m39s
refactor: remove unused using directives from service and test files for cleaner code
2025-07-27 13:26:04 +07:00

15 lines
522 B
C#

namespace CaddyManager.Contracts.Configurations;
/// <summary>
/// Contract for the services providing the configurations for the application
/// </summary>
public interface IConfigurationsService
{
/// <summary>
/// Method extracting the configurations from the appsettings.json file or environment variables base on the
/// type of the configuration class to determine the section name
/// </summary>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
T Get<T>() where T : class;
}