Ejemplo n.º 1
0
        /// <summary>
        /// Complete constructor for CM Fru
        /// </summary>
        /// <param name="commonHeader"></param>
        /// <param name="chassisInfoBytes"></param>
        /// <param name="boardInfoBytes"></param>
        /// <param name="productInfoBytes"></param>
        /// <param name="completionCode"></param>
        public void PopulateChassisFru(Ipmi.FruCommonHeader commonHeader,
                                       byte[] chassisInfoBytes,
                                       byte[] boardInfoBytes,
                                       byte[] productInfoBytes, byte completionCode)
        {
            this.CommonHeader    = commonHeader;
            this._completionCode = completionCode;
            if (chassisInfoBytes != null)
            {
                this.ChassisInfo = new Ipmi.FruChassisInfo(chassisInfoBytes);
            }

            if (boardInfoBytes != null)
            {
                this.BoardInfo = new Ipmi.FruBoardInfo(boardInfoBytes);
            }

            if (productInfoBytes != null)
            {
                this.ProductInfo = new Ipmi.FruProductInfo(productInfoBytes);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Complete constructor for CM Fru
        /// </summary>
        /// <param name="commonHeader"></param>
        /// <param name="chassisInfoBytes"></param>
        /// <param name="boardInfoBytes"></param>
        /// <param name="productInfoBytes"></param>
        /// <param name="completionCode"></param>
        public void PopulateChassisFru(Ipmi.FruCommonHeader commonHeader,
                            byte[] chassisInfoBytes,
                            byte[] boardInfoBytes,
                            byte[] productInfoBytes, byte completionCode)
        {
            this.CommonHeader = commonHeader;
            this._completionCode = completionCode;
            if (chassisInfoBytes != null)
            {
                this.ChassisInfo = new Ipmi.FruChassisInfo(chassisInfoBytes);
            }

            if (boardInfoBytes != null)
            {
                this.BoardInfo = new Ipmi.FruBoardInfo(boardInfoBytes);
            }

            if (productInfoBytes != null)
            {
                this.ProductInfo = new Ipmi.FruProductInfo(productInfoBytes);
            }

        }