mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
feat: Rename LoadConfig2 to LoadConfig and implement plugin version checks against configuration
This commit is contained in:
parent
5f4a35d425
commit
7d60c41dbc
3 changed files with 59 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue