refactor: Change CustomActivate and Initialize methods to protected access in multiple classes for better inheritance control

This commit is contained in:
Neil Dorin 2026-04-08 15:47:58 -06:00
parent e818c9ca03
commit daf9b4bda0
22 changed files with 99 additions and 82 deletions

View file

@ -87,7 +87,7 @@ public abstract class EssentialsDevice : Device
/// Override this method to perform any initialization that requires all devices to be activated. This method is called automatically after the DeviceManager.AllDevicesActivated event is fired, and should not be called directly.
/// </summary>
/// <returns></returns>
public override bool CustomActivate()
protected override bool CustomActivate()
{
CreateMobileControlMessengers();

View file

@ -63,7 +63,7 @@ namespace PepperDash.Essentials.Core.Devices;
/// CustomActivate method
/// </summary>
/// <inheritdoc />
public override bool CustomActivate()
protected override bool CustomActivate()
{
CommunicationMonitor.Start();
return true;