mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Adds back the correct PluginLoader version that supports loading with the new plugin methodology
This commit is contained in:
parent
fcc2a5db06
commit
a231bb75a6
3 changed files with 100 additions and 54 deletions
|
|
@ -18,7 +18,6 @@ namespace PepperDash.Essentials.Core
|
|||
/// </summary>
|
||||
public class GenericComm : ReconfigurableDevice
|
||||
{
|
||||
|
||||
EssentialsControlPropertiesConfig PropertiesConfig;
|
||||
|
||||
public IBasicCommunication CommPort { get; private set; }
|
||||
|
|
@ -30,7 +29,6 @@ namespace PepperDash.Essentials.Core
|
|||
|
||||
CommPort = CommFactory.CreateCommForDevice(config);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static IKeyed BuildDevice(DeviceConfig dc)
|
||||
|
|
@ -59,20 +57,19 @@ namespace PepperDash.Essentials.Core
|
|||
|
||||
ConfigWriter.UpdateDeviceConfig(config);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class GenericCommFactory : Essentials.Core.EssentialsDeviceFactory<GenericComm>
|
||||
{
|
||||
public GenericCommFactory()
|
||||
{
|
||||
TypeNames = new List<string>() { "genericComm" };
|
||||
}
|
||||
|
||||
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
||||
{
|
||||
Debug.Console(1, "Factory Attempting to create new Generic Comm Device");
|
||||
return new GenericComm(dc);
|
||||
}
|
||||
|
||||
public GenericCommFactory()
|
||||
{
|
||||
TypeNames = new List<string>() { "genericComm" };
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue