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 moduleNodeId = (NodeId)inputArguments[0];
object serviceError = (object)outputArguments[0];
if (OnCall != null)
{
result = OnCall(
context,
this,
objectId,
moduleNodeId,
ref serviceError);
}
outputArguments[0] = serviceError;
return result;
}