mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
feat: add 2 new routing interfaces to allow for getting feedback for routing
This commit is contained in:
@@ -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;
|
||||||
|
}*/
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user