From d26c5344e4e61ddb0e4138b65573bb4a9080f0a7 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Thu, 28 Mar 2024 19:55:53 -0600 Subject: [PATCH] fix: makes IMatrixRouting use generic types. --- src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs | 6 +++--- .../Displays/MockDisplay.cs | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs b/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs index cd3f6d37..e53ea7ec 100644 --- a/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs +++ b/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs @@ -2,10 +2,10 @@ namespace PepperDash.Essentials.Core.Routing { - public interface IMatrixRouting + public interface IMatrixRouting where TInput : IRoutingInputSlot where TOutput : IRoutingOutputSlot { - Dictionary InputSlots { get; } - Dictionary OutputSlots { get; } + Dictionary InputSlots { get; } + Dictionary OutputSlots { get; } void Route(string inputSlotKey, string outputSlotKey, eRoutingSignalType type); } diff --git a/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplay.cs b/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplay.cs index dd036205..a1241821 100644 --- a/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplay.cs +++ b/src/PepperDash.Essentials.Devices.Common/Displays/MockDisplay.cs @@ -26,7 +26,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays { return () => { - Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** Display Power is {0}", _PowerIsOn ? "on" : "off"); return _PowerIsOn; }; } } @@ -36,7 +35,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays { return () => { - Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** {0}", _IsCoolingDown ? "Display is cooling down" : "Display has finished cooling down"); return _IsCoolingDown; }; } @@ -47,7 +45,6 @@ namespace PepperDash.Essentials.Devices.Common.Displays { return () => { - Debug.LogMessage(LogEventLevel.Verbose, this, "*************************************************** {0}", _IsWarmingUp ? "Display is warming up" : "Display has finished warming up"); return _IsWarmingUp; }; }