initial pass at fixing RMC activation issues

This commit is contained in:
Andrew Welker
2020-05-18 22:42:15 -06:00
parent 5707d12fbe
commit 5dc92b86a6
3 changed files with 105 additions and 30 deletions

View File

@@ -30,7 +30,19 @@ namespace PepperDash.Essentials.Core
protected CrestronGenericBaseDevice(string key, string name, GenericBase hardware)
: base(key, name)
{
{
SetHardwareAndRegisterEvents(hardware);
}
//Added to support creating RMC and DM TX hardware during pre-activation
protected CrestronGenericBaseDevice(string key, string name) : base(key, name)
{
}
//Added to support creating RMC and DM TX hardware during pre-activation
protected void SetHardwareAndRegisterEvents(GenericBase hardware)
{
Feedbacks = new FeedbackCollection<Feedback>();
Hardware = hardware;
@@ -40,7 +52,7 @@ namespace PepperDash.Essentials.Core
AddToFeedbackList(IsOnline, IpConnectionsText);
CommunicationMonitor = new CrestronGenericBaseCommunicationMonitor(this, hardware, 120000, 300000);
}
}
/// <summary>
/// Make sure that overriding classes call this!
@@ -135,6 +147,10 @@ namespace PepperDash.Essentials.Core
{
}
//Added to support creating RMC and DM TX hardware during pre-activation
protected CrestronGenericBridgeableBaseDevice(string key, string name):base(key, name)
{
}
public abstract void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge);
}