All checks were successful
Restart Docker Container on Production / build (pull_request) Successful in 3m13s
18 lines
434 B
C#
18 lines
434 B
C#
using RBLNews.Web.Models;
|
|
|
|
namespace RBLNews.Web.Services;
|
|
|
|
public class ConfigService
|
|
{
|
|
private readonly IConfiguration _configuration;
|
|
|
|
public AppSettingsModel AppSettings { get; private set; }
|
|
|
|
public ConfigService(IConfiguration configuration)
|
|
{
|
|
this._configuration = configuration;
|
|
configuration.GetSection("App").Bind(this.AppSettings);
|
|
|
|
AppSettings = configuration.GetSection("App").Get<AppSettingsModel>();
|
|
}
|
|
} |