Created appsettings class to pull from appsettings.json files
This commit is contained in:
25
ReportingServices.UI/Models/AppSettings.cs
Normal file
25
ReportingServices.UI/Models/AppSettings.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System.Text.Json;
|
||||
|
||||
namespace ReportingServices.UI.Models;
|
||||
|
||||
public record AppSettings(string BaseAPIAddress,
|
||||
string BuildNumber,
|
||||
string Company,
|
||||
string DailyReportFilePath,
|
||||
string GitCommitSeven,
|
||||
string LoggingDirectory,
|
||||
bool IsDevelopment,
|
||||
bool IsStaging,
|
||||
string MonAResource,
|
||||
string MonASite,
|
||||
string ToolStateOwnerFilePath,
|
||||
string URLs)
|
||||
{
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user