Updated the way application settings are loaded and added some intialization functions to the various manager classes to load and validate all the user supplied options at start up instead of constantly reevaluating them over the course of the application's runtime.
This commit is contained in:
@@ -5,7 +5,6 @@ using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using System.Net;
|
||||
using SecureCore.Services;
|
||||
|
||||
namespace SecureCore
|
||||
@@ -14,6 +13,9 @@ namespace SecureCore
|
||||
{
|
||||
public Startup(IConfiguration configuration)
|
||||
{
|
||||
AppSettingsManager.InitializeSettings();
|
||||
Authentication.PasswordManager.InitializeSettings();
|
||||
|
||||
Configuration = configuration;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user