From 62fdd6a5723514fee3e183c46ad21cc9aa8025ce Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 28 May 2020 17:24:24 -0600 Subject: [PATCH] #219 changes ReleaseAndMakeRoute to IRoutingSinkNoSwitching removes check for IRoutingSinkNoSwitching interface in GetRouteToSource --- .../Routing/IRoutingInputsExtensions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Routing/IRoutingInputsExtensions.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Routing/IRoutingInputsExtensions.cs index aeb08088..9c71bf2b 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Routing/IRoutingInputsExtensions.cs +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Routing/IRoutingInputsExtensions.cs @@ -22,7 +22,7 @@ namespace PepperDash.Essentials.Core /// and then attempts a new Route and if sucessful, stores that RouteDescriptor /// in RouteDescriptorCollection.DefaultCollection /// - public static void ReleaseAndMakeRoute(this IRoutingInputs destination, IRoutingOutputs source, eRoutingSignalType signalType) + public static void ReleaseAndMakeRoute(this IRoutingSinkNoSwitching destination, IRoutingOutputs source, eRoutingSignalType signalType) { destination.ReleaseRoute(); @@ -152,7 +152,6 @@ namespace PepperDash.Essentials.Core if (outputPortToUse == null) { // it's a sink device - if (destination is IRoutingSinkWithSwitching) routeTable.Routes.Add(new RouteSwitchDescriptor(goodInputPort)); } else if (destination is IRouting)