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 @@ namespace PepperDash.Essentials.Core;
/// CustomActivate method
/// </summary>
/// <inheritdoc />
public override bool CustomActivate()
protected override bool CustomActivate()
{
Debug.LogMessage(LogEventLevel.Information, this, "Activating");
if (!PreventRegistration)

View file

@ -36,7 +36,7 @@ namespace PepperDash.Essentials.Core
/// Make sure that overriding classes call this!
/// Registers the Crestron device, connects up to the base events, starts communication monitor
/// </summary>
public override bool CustomActivate()
protected override bool CustomActivate()
{
Debug.LogMessage(LogEventLevel.Information, this, "Activating");
var response = Hardware.RegisterWithLogging(Key);