protected override ServiceResult Call(
ISystemContext context,
NodeId objectId,
IList<object> inputArguments,
IList<object> outputArguments)
{
if (OnCall == null)
{
return base.Call(context, objectId, inputArguments, outputArguments);
}
ServiceResult result = null;
NodeId applicationId = (NodeId)inputArguments[0];
ApplicationRecordDataType application = (ApplicationRecordDataType)outputArguments[0];
if (OnCall != null)
{
result = OnCall(
context,
this,
objectId,
applicationId,
ref application);
}
outputArguments[0] = application;
return result;
}