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;
string oPERATION = (string)inputArguments[0];
ushort linkId = (ushort)inputArguments[1];
byte oldAddress = (byte)inputArguments[2];
byte newAddress = (byte)inputArguments[3];
string newPDTag = (string)inputArguments[4];
uint serviceId = (uint)inputArguments[5];
uint delayForNextCall = (uint)outputArguments[0];
object serviceError = (object)outputArguments[1];
if (OnCall != null)
{
result = OnCall(
context,
this,
objectId,
oPERATION,
linkId,
oldAddress,
newAddress,
newPDTag,
serviceId,
ref delayForNextCall,
ref serviceError);
}
outputArguments[0] = delayForNextCall;
outputArguments[1] = serviceError;
return result;
}