Skip to content

Commit

Permalink
Quick fix device type meta data manager missing
Browse files Browse the repository at this point in the history
* because it was part of the wrong sub folder and therefore was excluded
* correct typing on device layout extension data property
  • Loading branch information
susch19 committed May 19, 2024
1 parent 8b45324 commit 108281c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion AppBroker.Core/DynamicUI/DeviceLayout.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace AppBroker.Core.DynamicUI;

Expand All @@ -10,6 +11,6 @@ public record DeviceLayout(
long[]? Ids,
DashboardDeviceLayout? DashboardDeviceLayout,
DetailDeviceLayout? DetailDeviceLayout,
[property:Newtonsoft.Json.JsonExtensionData]IDictionary<string, string> AdditionalData,
[property:Newtonsoft.Json.JsonExtensionData]IDictionary<string, JToken> AdditionalData,
int Version = 1,
bool ShowOnlyInDeveloperMode = false );
3 changes: 2 additions & 1 deletion AppBrokerASP/InstanceContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

using AppBrokerASP.Configuration;
using AppBrokerASP.Histories;
using AppBrokerASP.Manager;
using AppBrokerASP.State;

namespace AppBrokerASP;
Expand Down Expand Up @@ -37,7 +38,7 @@ public InstanceContainer()
var localDeviceManager = new DeviceManager();
DeviceManager = localDeviceManager;
localDeviceManager.LoadDevices();
//DeviceTypeMetaDataManager = new DeviceTypeMetaDataManager(localDeviceManager);
DeviceTypeMetaDataManager = new DeviceTypeMetaDataManager(localDeviceManager);
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using AppBroker.Core;
using AppBroker.Core.Devices;
using AppBroker.Core.Devices;
using AppBroker.Core.Managers;

using AppBroker.Core;
using System.Reflection;
using NLog;

using System.Reflection;
namespace AppBrokerASP.Manager;

namespace AppBrokerASP.Devices.Elsa;

public class DeviceTypeMetaDataManager : IDeviceTypeMetaDataManager
{
Expand All @@ -27,13 +26,11 @@ public class DeviceTypeMetaDataManager : IDeviceTypeMetaDataManager
private readonly HashSet<PropertyInfo> properties;
private readonly HashSet<Type> deviceTypes;

private readonly IDeviceManager manager;
private readonly NLog.ILogger logger;

public DeviceTypeMetaDataManager(DeviceManager manager)
{
var stringArrWithEmpty = new[] { "" };
this.manager = manager;
logger = LogManager.GetCurrentClassLogger();
deviceTypes = Assembly
.GetExecutingAssembly()
Expand Down

0 comments on commit 108281c

Please sign in to comment.