2024-03-28 19:17:46 +01:00
|
|
|
|
using Microsoft.Extensions.Configuration;
|
2024-04-27 22:36:16 +02:00
|
|
|
|
using WatchIt.WebAPI.Services.Utility.Configuration.Model;
|
2024-03-28 19:17:46 +01:00
|
|
|
|
|
2024-04-27 22:36:16 +02:00
|
|
|
|
namespace WatchIt.WebAPI.Services.Utility.Configuration;
|
2024-03-28 19:17:46 +01:00
|
|
|
|
|
2024-04-27 22:36:16 +02:00
|
|
|
|
public class ConfigurationService(IConfiguration configuration) : IConfigurationService
|
|
|
|
|
|
{
|
|
|
|
|
|
#region PROPERTIES
|
2024-03-28 19:17:46 +01:00
|
|
|
|
|
2024-04-27 22:36:16 +02:00
|
|
|
|
public ConfigurationData Data => configuration.Get<ConfigurationData>()!;
|
2024-03-28 19:17:46 +01:00
|
|
|
|
|
2024-04-27 22:36:16 +02:00
|
|
|
|
#endregion
|
|
|
|
|
|
}
|