Exemple #1
0
        /// <summary>
        /// An NUnit test case calls this method to register its interest in
        /// obtaining the values of all the nodes represented by 'nodeIds'.
        /// </summary>
        /// <param name="nodeIds">Node IDs of the nodes whose values are to be
        /// waited upon.</param>
        internal void RegisterPreviewRequest(uint[] nodeIds)
        {
            if (null == nodeIds || (nodeIds.Length <= 0))
            {
                throw new ArgumentNullException("nodeIds");
            }
            if (null != this.previewRequest)
            {
                throw new InvalidOperationException("'RegisterPreviewRequest' called twice.");
            }

            this.previewRequest = new PreviewRequest();
            this.previewRequest.AddNodeIds(nodeIds);
        }
        /// <summary>
        /// An NUnit test case calls this method to register its interest in 
        /// obtaining the values of all the nodes represented by 'nodeIds'.
        /// </summary>
        /// <param name="nodeIds">Node IDs of the nodes whose values are to be 
        /// waited upon.</param>
        internal void RegisterPreviewRequest(uint[] nodeIds)
        {
            if (null == nodeIds || (nodeIds.Length <= 0))
                throw new ArgumentNullException("nodeIds");
            if (null != this.previewRequest)
                throw new InvalidOperationException("'RegisterPreviewRequest' called twice.");

            this.previewRequest = new PreviewRequest();
            this.previewRequest.AddNodeIds(nodeIds);
        }