示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="bytes"></param>
        /// <param name="pr"></param>
        private void AddCommuniFailDetail(byte[] bytes, ParseResult pr)
        {
            CommuniFailDetail cfd = new CommuniFailDetail(
                this.Device.DeviceType,
                this.Opera.ToString(),
                pr.ToString(),
                bytes);

            this.Device.CommuniFailDetails.Add(cfd);

            string s = string.Format("Parse '{0} {1}' fail, opera '{2}', bytes '{3}'",
                                     Device.DeviceType, Opera.Name, pr,
                                     bytes == null ? "" : BitConverter.ToString(bytes));

            log.Debug(s);
        }
示例#2
0
文件: Task.cs 项目: hkiaipc/yh
        /// <summary>
        /// 
        /// </summary>
        /// <param name="bytes"></param>
        /// <param name="pr"></param>
        private void AddCommuniFailDetail(byte[] bytes, ParseResult pr)
        {
            CommuniFailDetail cfd = new CommuniFailDetail(
                this.Device.DeviceType,
                this.Opera.ToString(),
                pr.ToString(),
                bytes);

            this.Device.CommuniFailDetails.Add(cfd);

            string s = string.Format("Parse '{0} {1}' fail, opera '{2}', bytes '{3}'",
                Device.DeviceType, Opera.Name, pr,
                bytes == null ? "" : BitConverter.ToString(bytes));
            log.Debug(s);
        }