From d2d041dbf757b5bf59a1c61a95e7748a23ff14db Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 3 Apr 2024 10:42:25 -0500 Subject: [PATCH] fix: make IRoutingOutputSlot & RoutingOutputSlotBase generic --- src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs | 2 +- .../Routing/IRoutingOutputSlot.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs b/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs index e53ea7ec..7bdd7453 100644 --- a/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs +++ b/src/PepperDash.Essentials.Core/Routing/IMatrixRouting.cs @@ -2,7 +2,7 @@ namespace PepperDash.Essentials.Core.Routing { - public interface IMatrixRouting where TInput : IRoutingInputSlot where TOutput : IRoutingOutputSlot + public interface IMatrixRouting where TInput : IRoutingInputSlot where TOutput : IRoutingOutputSlot { Dictionary InputSlots { get; } Dictionary OutputSlots { get; } diff --git a/src/PepperDash.Essentials.Core/Routing/IRoutingOutputSlot.cs b/src/PepperDash.Essentials.Core/Routing/IRoutingOutputSlot.cs index a9a4eea2..f8dff8be 100644 --- a/src/PepperDash.Essentials.Core/Routing/IRoutingOutputSlot.cs +++ b/src/PepperDash.Essentials.Core/Routing/IRoutingOutputSlot.cs @@ -3,19 +3,19 @@ using System.Collections.Generic; namespace PepperDash.Essentials.Core.Routing { - public interface IRoutingOutputSlot : IRoutingSlot + public interface IRoutingOutputSlot : IRoutingSlot where TInput: IRoutingInputSlot { event EventHandler OutputSlotChanged; string RxDeviceKey { get; } - Dictionary CurrentRoutes { get; } + Dictionary CurrentRoutes { get; } } - public abstract class RoutingOutputSlotBase : IRoutingOutputSlot + public abstract class RoutingOutputSlotBase : IRoutingOutputSlot where TInput: IRoutingInputSlot { public abstract string RxDeviceKey { get; } - public abstract Dictionary CurrentRoutes { get; } + public abstract Dictionary CurrentRoutes { get; } public abstract int SlotNumber { get; } public abstract eRoutingSignalType SupportedSignalTypes { get; } public abstract string Name { get; }