Question
Fifth Third Bank Bank
US
Last activity: 17 Feb 2021 10:12 EST
How to Use Custom Entities as Out Parameters in C# script methods
Using Visual Studio 2015, I have created a .NET project with a custom entity class for passing around data. I can successfully reference it with OpenSpan projects (plugin version 8.0.1103). I can also use it in automations' Execute parameters, as well as reference the class inside of C# script components. Everything builds, and seems to work fine... until...
The one deal breaker seems to be when trying to use the custom class as an out parameter in a C# script component public method (it works for a private method). The error message when validating indicates the assembly cannot be loaded. So it seems I am unable to pass this custom class to an automation via a script method's out parameter. As noted, I can reference the custom class just fine in an automation... just not via a script's out parameter.
Does anyone have a suggestion as to how to get around this problem?