Cgw.Service.CgwService.SyncMonitorChannel C# (CSharp) Method

SyncMonitorChannel() public method

同步通道信息
public SyncMonitorChannel ( List &channelInfoList ) : SmcErr
channelInfoList List
return Cgw.SmcError.SmcErr
        public SmcErr SyncMonitorChannel(ref  List<ChannelInfo> channelInfoList)
        {
            SmcErr err = new CgwError();
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            err = CheckSession();
            //调任何接口前 需要判断监控平台是否加载成功
            if (err.IsSuccess())
            {
                if (channelInfoList != null)
                {
                    err = MonitorChannelBll.Instance().SyncMonitorChannel(ref channelInfoList);
                }
                else
                {
                    err.SetErrorNo(CgwError.ERR_CGW_BUSINESS_CHANNELLIST_NULL);
                }
            }
            if (err.IsSuccess())
            {
                logEx.Info("SMC SyncMonitorChannel  Successful,Current SMC IP is : {0}", CgwConst.SmcIp);
            }
            else
            {
                logEx.Error("SMC SyncMonitorChannel failed,ErrNo :{0}", err.ErrNo);
            }
            return err;
        }