/// <summary>
        /// Initialize class
        /// </summary>
        internal NodeManagerMessage()
        {
            NodeManagerMessageAttribute[] attributes =
                (NodeManagerMessageAttribute[])this.GetType().GetCustomAttributes(typeof(NodeManagerMessageAttribute), true);
            if (attributes.Length != 1)
            {
                throw new InvalidOperationException();
            }

            this.nodeManagerMessageAttribute = attributes[0];
        }
예제 #2
0
        /// <summary>
        /// Initialize class
        /// </summary>
        internal NodeManagerMessage()
        {
            NodeManagerMessageAttribute[] attributes =
                (NodeManagerMessageAttribute[])this.GetType().GetCustomAttributes(typeof(NodeManagerMessageAttribute), true);
            if (attributes.Length != 1)
            {
                throw new InvalidOperationException();
            }

            this.nodeManagerMessageAttribute = attributes[0];
        }