feat: add 2 new routing interfaces to allow for getting feedback for routing

This commit is contained in:
Andrew Welker
2024-05-08 08:37:25 -05:00
parent 3ae0b512c2
commit 2b4dc8d435
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using PepperDash.Essentials.Core.Routing;
using System;
using System.Collections.Generic;
namespace PepperDash.Essentials.Core
{
/// <summary>
/// For fixed-source endpoint devices
/// </summary>
public interface IRoutingSinkWithFeedback : IRoutingSinkWithSwitching
{
RouteSwitchDescriptor CurrentRoute { get; }
event EventHandler InputChanged;
}
/* /// <summary>
/// For fixed-source endpoint devices
/// </summary>
public interface IRoutingSinkWithFeedback<TSelector> : IRoutingSinkWithSwitching<TSelector>
{
RouteSwitchDescriptor CurrentRoute { get; }
event EventHandler InputChanged;
}*/
}

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
using System;
namespace PepperDash.Essentials.Core
{
/// <summary>
/// Defines an IRouting with a feedback event
/// </summary>
public interface IRoutingWithFeedback : IRouting
{
List<RouteSwitchDescriptor> CurrentRoutes { get; }
event EventHandler RoutingChanged;
}
}