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