Files
VDownload/VDownload.Services/VDownload.Services.Data/VDownload.Services.Data.Configuration/ConfigurationService.cs
Mateusz Skoczek e3ec5c3a48 twitch vod downloading done
ffmpeg essentials

fix

Project reorganized

git lfs

ffmpeg removed

ffmpeg added
2024-02-22 02:25:13 +01:00

49 lines
1.1 KiB
C#

using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VDownload.Sources.Twitch.Configuration;
namespace VDownload.Services.Data.Configuration
{
public interface IConfigurationService
{
CommonConfiguration Common { get; }
TwitchConfiguration Twitch { get; }
}
public class ConfigurationService : IConfigurationService
{
#region SERVICES
protected readonly IConfiguration _configuration;
#endregion
#region PROPERTIES
public CommonConfiguration Common { get; protected set; }
public TwitchConfiguration Twitch { get; protected set; }
#endregion
#region CONSTRUCTORS
public ConfigurationService(IConfiguration configuration)
{
Common = configuration.GetSection("common").Get<CommonConfiguration>()!;
Twitch = configuration.GetSection("twitch").Get<TwitchConfiguration>()!;
}
#endregion
}
}