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

@ -1283,7 +1283,7 @@ namespace PepperDash.Essentials
}
/// <inheritdoc />
public override void Initialize()
protected override void Initialize()
{
if (!Config.EnableMessengerSubscriptions)
{

View file

@ -141,7 +141,7 @@ namespace PepperDash.Essentials.Room.MobileControl
/// <summary>
/// CustomActivate method
/// </summary>
public override bool CustomActivate()
protected override bool CustomActivate()
{
this.LogDebug("Final activation. Setting up actions and feedbacks");
//SetupFunctions();

View file

@ -364,7 +364,7 @@ namespace PepperDash.Essentials.Touchpanel
/// <summary>
/// CustomActivate method
/// </summary>
public override bool CustomActivate()
protected override bool CustomActivate()
{
var appMessenger = new ITswAppControlMessenger($"appControlMessenger-{Key}", $"/device/{Key}", this);

View file

@ -261,7 +261,7 @@ namespace PepperDash.Essentials.WebSocketServer
/// Initialize method
/// </summary>
/// <inheritdoc />
public override void Initialize()
protected override void Initialize()
{
try
{
@ -276,7 +276,7 @@ namespace PepperDash.Essentials.WebSocketServer
{
ClientCertificateRequired = false,
CheckCertificateRevocation = false,
EnabledSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11
EnabledSslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13
};
}