Opc.Ua.Di.TransferToDeviceMethodState.Call C# (CSharp) 메소드

Call() 보호된 메소드

Invokes the method, returns the result and output argument.
protected Call ( ISystemContext context, Opc.Ua.NodeId objectId, IList inputArguments, IList outputArguments ) : ServiceResult
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.
리턴 Opc.Ua.ServiceResult
        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;

            int transferID = (int)outputArguments[0];
            int initTransferStatus = (int)outputArguments[1];

            if (OnCall != null)
            {
                result = OnCall(
                    context,
                    this,
                    objectId,
                    ref transferID,
                    ref initTransferStatus);
            }

            outputArguments[0] = transferID;
            outputArguments[1] = initTransferStatus;

            return result;
        }