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;
XmlElement topologyScanResult = (XmlElement)outputArguments[0];
object serviceError = (object)outputArguments[1];
if (OnCall != null)
{
result = OnCall(
context,
this,
objectId,
ref topologyScanResult,
ref serviceError);
}
outputArguments[0] = topologyScanResult;
outputArguments[1] = serviceError;
return result;
}