mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
feat: adds try catch to devjson execution thread and adds port names for sdi in/out
This commit is contained in:
@@ -84,7 +84,18 @@ namespace PepperDash.Essentials.Core
|
|||||||
.Select((p, i) => ConvertType(action.Params[i], p.ParameterType))
|
.Select((p, i) => ConvertType(action.Params[i], p.ParameterType))
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
Task.Run(() => method.Invoke(obj, convertedParams));
|
Task.Run(() =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Debug.LogMessage(LogEventLevel.Verbose, "Calling method {methodName} on device {deviceKey}", null, method.Name, action.DeviceKey);
|
||||||
|
method.Invoke(obj, convertedParams);
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
Debug.LogMessage(e, "Error invoking method {methodName} on device {deviceKey}", null, method.Name, action.DeviceKey);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
CrestronConsole.ConsoleCommandResponse("Method {0} successfully called on device {1}", method.Name,
|
CrestronConsole.ConsoleCommandResponse("Method {0} successfully called on device {1}", method.Name,
|
||||||
action.DeviceKey);
|
action.DeviceKey);
|
||||||
|
|||||||
@@ -239,5 +239,13 @@ namespace PepperDash.Essentials.Core
|
|||||||
/// HdBaseTOut
|
/// HdBaseTOut
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string HdBaseTOut = "hdBaseTOut";
|
public const string HdBaseTOut = "hdBaseTOut";
|
||||||
|
/// <summary>
|
||||||
|
/// SdiIn
|
||||||
|
/// </summary>
|
||||||
|
public const string SdiIn = "sdiIn";
|
||||||
|
/// <summary>
|
||||||
|
/// SdiOut
|
||||||
|
/// </summary>
|
||||||
|
public const string SdiOut = "sdiOut";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user