mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
refactor: Change CustomActivate and Initialize methods to protected access in multiple classes for better inheritance control
This commit is contained in:
parent
e818c9ca03
commit
daf9b4bda0
22 changed files with 99 additions and 82 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue