mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
fix: updates executeSwitch, add helper method
1. Updated executeSwitch object casting to resolve routing issues. 2. Added ListRoutingPorts method.
This commit is contained in:
parent
1d60f2e069
commit
6c41b8e19d
1 changed files with 37 additions and 2 deletions
|
|
@ -208,6 +208,38 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void ListRoutingPorts()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
foreach (var port in InputPorts)
|
||||||
|
{
|
||||||
|
Debug.Console(0, this, @"Input Port Key: {0}
|
||||||
|
Port: {1}
|
||||||
|
Type: {2}
|
||||||
|
ConnectionType: {3}
|
||||||
|
Selector: {4}
|
||||||
|
", port.Key, port.Port, port.Type, port.ConnectionType, port.Selector);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var port in OutputPorts)
|
||||||
|
{
|
||||||
|
Debug.Console(0, this, @"Output Port Key: {0}
|
||||||
|
Port: {1}
|
||||||
|
Type: {2}
|
||||||
|
ConnectionType: {3}
|
||||||
|
Selector: {4}
|
||||||
|
", port.Key, port.Port, port.Type, port.ConnectionType, port.Selector);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Debug.Console(0, this, "ListRoutingPorts Exception Message: {0}", ex.Message);
|
||||||
|
Debug.Console(0, this, "ListRoutingPorts Exception StackTrace: {0}", ex.StackTrace);
|
||||||
|
if (ex.InnerException != null) Debug.Console(0, this, "ListRoutingPorts InnerException: {0}", ex.InnerException);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region BridgeLinking
|
#region BridgeLinking
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -299,9 +331,12 @@ namespace PepperDash_Essentials_DM.Chassis
|
||||||
/// <param name="signalType"></param>
|
/// <param name="signalType"></param>
|
||||||
public void ExecuteSwitch(object inputSelector, object outputSelector, eRoutingSignalType signalType)
|
public void ExecuteSwitch(object inputSelector, object outputSelector, eRoutingSignalType signalType)
|
||||||
{
|
{
|
||||||
var input = inputSelector as HdPsXxxHdmiInput;
|
//var input = inputSelector as HdPsXxxHdmiInput;
|
||||||
var output = outputSelector as HdPsXxxHdmiOutput;
|
//var output = outputSelector as HdPsXxxHdmiOutput;
|
||||||
|
|
||||||
|
var input = inputSelector as HdPsXxxInput;
|
||||||
|
var output = outputSelector as HdPsXxxOutput;
|
||||||
|
|
||||||
Debug.Console(2, this, "ExecuteSwitch: input={0}, output={1}", input, output);
|
Debug.Console(2, this, "ExecuteSwitch: input={0}, output={1}", input, output);
|
||||||
|
|
||||||
if (output == null)
|
if (output == null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue