mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-10 02:05:08 +00:00
Finishes converting all existing types to new DeviceFactory mechanism. #106
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user