コード例 #1
0
ファイル: ChassisFru.cs プロジェクト: waflores/ChassisManager
        /// <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);
            }
        }
コード例 #2
0
ファイル: ChassisFru.cs プロジェクト: kewencai/ChassisManager
        /// <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);
            }

        }