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;
NodeId applicationId = (NodeId)inputArguments[0];
NodeId requestId = (NodeId)inputArguments[1];
byte[] certificate = (byte[])outputArguments[0];
byte[] privateKey = (byte[])outputArguments[1];
byte[][] issuerCertificates = (byte[][])outputArguments[2];
if (OnCall != null)
{
result = OnCall(
context,
this,
objectId,
applicationId,
requestId,
ref certificate,
ref privateKey,
ref issuerCertificates);
}
outputArguments[0] = certificate;
outputArguments[1] = privateKey;
outputArguments[2] = issuerCertificates;
return result;
}