protected Call ( ISystemContext context, Opc.Ua.NodeId objectId, IList | ||
context | ISystemContext | The current context. |
objectId | Opc.Ua.NodeId | The id of the object. |
inputArguments | IList |
The input arguments which have been already validated. |
outputArguments | IList |
The output arguments which have initialized with thier default values. |
return |
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;
}