Progress on adding Description attribute and printing types at runtime

This commit is contained in:
Neil Dorin
2020-04-16 21:10:45 -06:00
parent c5232ca6b8
commit ae23eec005
13 changed files with 117 additions and 17 deletions

View File

@@ -81,10 +81,22 @@ namespace PepperDash.Essentials
"Template URL: {1}", ConfigReader.ConfigObject.SystemUrl, ConfigReader.ConfigObject.TemplateUrl);
}, "portalinfo", "Shows portal URLS from configuration", ConsoleAccessLevelEnum.AccessOperator);
LoadDeviceTypesFromFactories();
if (!Debug.DoNotLoadOnNextBoot)
GoWithLoad();
}
/// <summary>
/// Instantiates each of the device factories to load thier device types
/// </summary>
void LoadDeviceTypesFromFactories()
{
// Instantiate the Device Factories
new CoreDeviceFactory();
new DmDeviceFactory();
}
/// <summary>
@@ -291,9 +303,6 @@ namespace PepperDash.Essentials
/// </summary>
public void LoadDevices()
{
// Instantiate the Device Factories
new CoreDeviceFactory();
// Build the processor wrapper class
DeviceManager.AddDevice(new PepperDash.Essentials.Core.Devices.CrestronProcessor("processor"));