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