feat: Rename LoadConfig2 to LoadConfig and implement plugin version checks against configuration

This commit is contained in:
Neil Dorin 2026-04-13 21:50:24 -06:00
parent 5f4a35d425
commit 7d60c41dbc
3 changed files with 59 additions and 2 deletions

View file

@ -35,7 +35,7 @@ namespace PepperDash.Essentials.Core.Config;
/// <summary>
/// LoadConfig2 method
/// </summary>
public static bool LoadConfig2()
public static bool LoadConfig()
{
Debug.LogMessage(LogEventLevel.Information, "Loading unmerged system/template portal configuration file.");
try

View file

@ -6,7 +6,13 @@ using System.Threading.Tasks;
namespace PepperDash.Essentials.Core;
/// <summary>
/// Defines the contract for loading configuration. This is called after all plugins have been loaded, but before any devices are initialized. This allows for any necessary configuration merging or processing to be done before devices are created and initialized.
/// </summary>
public interface ILoadConfig
{
/// <summary>
/// Executes the loading of the configuration. This is called after all plugins have been loaded, but before any devices are initialized. This allows for any necessary configuration merging or processing to be done before devices are created and initialized.
/// </summary>
void GoWithLoad();
}