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