示例#1
0
        /// <summary>
        /// Read value of a node
        /// </summary>
        /// <param name="session"></param>
        /// <param name="requestHeader"></param>
        /// <param name="nodeId"></param>
        /// <param name="operations"></param>
        /// <param name="traceOnly"></param>
        /// <returns></returns>
        public static async Task <Variant?> ReadValueAsync(Session session,
                                                           RequestHeader requestHeader, NodeId nodeId,
                                                           List <OperationResultModel> operations, bool traceOnly)
        {
            var node = new RawNodeModel(nodeId, session.NamespaceUris);
            await node.ReadValueAsync(session, requestHeader, operations, false, traceOnly);

            return(node.Value);
        }
示例#2
0
        /// <summary>
        /// Read raw node in the form of its attributes from remote.
        /// </summary>
        /// <param name="session"></param>
        /// <param name="requestHeader"></param>
        /// <param name="nodeId"></param>
        /// <param name="skipValue"></param>
        /// <param name="operations"></param>
        /// <param name="traceOnly"></param>
        /// <returns></returns>
        public static async Task <RawNodeModel> ReadAsync(Session session,
                                                          RequestHeader requestHeader, NodeId nodeId, bool skipValue,
                                                          List <OperationResultModel> operations, bool traceOnly)
        {
            var node = new RawNodeModel(nodeId, session.NamespaceUris);
            await node.ReadAsync(session, requestHeader, skipValue, operations, traceOnly);

            return(node);
        }