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];
string oPERATION = (string)inputArguments[1];
byte sLOT = (byte)inputArguments[2];
byte iNDEX = (byte)inputArguments[3];
byte[] rEQUEST = (byte[])inputArguments[4];
byte[] rEPLY = (byte[])outputArguments[0];
byte[] rESPONSE_CODES = (byte[])outputArguments[1];
object serviceError = (object)outputArguments[2];
if (OnCall != null)
{
result = OnCall(
context,
this,
objectId,
communicationRelationId,
oPERATION,
sLOT,
iNDEX,
rEQUEST,
ref rEPLY,
ref rESPONSE_CODES,
ref serviceError);
}
outputArguments[0] = rEPLY;
outputArguments[1] = rESPONSE_CODES;
outputArguments[2] = serviceError;
return result;
}