mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
Finishes converting all existing types to new DeviceFactory mechanism. #106
This commit is contained in:
parent
d3562bf22d
commit
56c339bb08
29 changed files with 626 additions and 336 deletions
|
|
@ -22,13 +22,12 @@ namespace PepperDash.Essentials
|
|||
{
|
||||
public BridgeFactory()
|
||||
{
|
||||
var bridgeFactory = new BridgeFactory() as IDeviceFactory;
|
||||
bridgeFactory.LoadTypeFactories();
|
||||
var eiscApiFactory = new EiscApiFactory() as IDeviceFactory;
|
||||
eiscApiFactory.LoadTypeFactories();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class CommBridge : Device
|
||||
{
|
||||
public CommBridgeProperties Properties { get; private set; }
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ namespace PepperDash.Essentials
|
|||
new BridgeFactory();
|
||||
|
||||
new PepperDash.Essentials.Devices.Common.DeviceFactory();
|
||||
|
||||
new PepperDash.Essentials.Devices.Displays.DisplayDeviceFactory();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -378,8 +378,8 @@ namespace PepperDash.Essentials
|
|||
newDev = PepperDash.Essentials.Core.DeviceFactory.GetDevice(devConf);
|
||||
|
||||
//
|
||||
if (newDev == null)
|
||||
newDev = PepperDash.Essentials.Devices.Displays.DisplayDeviceFactory.GetDevice(devConf);
|
||||
//if (newDev == null)
|
||||
// newDev = PepperDash.Essentials.Devices.Displays.DisplayDeviceFactory.GetDevice(devConf);
|
||||
//
|
||||
|
||||
if (newDev != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue