mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
#219 changes ReleaseAndMakeRoute to IRoutingSinkNoSwitching
removes check for IRoutingSinkNoSwitching interface in GetRouteToSource
This commit is contained in:
parent
305fe5c372
commit
62fdd6a572
1 changed files with 1 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ namespace PepperDash.Essentials.Core
|
|||
/// and then attempts a new Route and if sucessful, stores that RouteDescriptor
|
||||
/// in RouteDescriptorCollection.DefaultCollection
|
||||
/// </summary>
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue