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;
NodeId applicationId = (NodeId)inputArguments[0];
NodeId certificateGroupId = (NodeId)inputArguments[1];
NodeId certificateTypeId = (NodeId)inputArguments[2];
string subjectName = (string)inputArguments[3];
string[] domainNames = (string[])inputArguments[4];
string privateKeyFormat = (string)inputArguments[5];
string privateKeyPassword = (string)inputArguments[6];
NodeId requestId = (NodeId)outputArguments[0];
if (OnCall != null)
{
result = OnCall(
context,
this,
objectId,
applicationId,
certificateGroupId,
certificateTypeId,
subjectName,
domainNames,
privateKeyFormat,
privateKeyPassword,
ref requestId);
}
outputArguments[0] = requestId;
return result;
}