Cgw.Channel.MonitorChannelManager.RemoveSotChannel C# (CSharp) Method

RemoveSotChannel() public method

软终端删除通道
public RemoveSotChannel ( string channelLabel ) : bool
channelLabel string
return bool
        public bool RemoveSotChannel(string channelLabel)
        {
            bool isSuccess = false;
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            logEx.Trace("RemoveSotChannel channelLabel:{0}.", channelLabel);
            string channelCode = CommonFunction.ConvertChannelLabel(channelLabel);

            try
            {
                isSuccess = this.softTerminalAdapter.RemoveChannel(channelCode);
                if (isSuccess)
                {
                    logEx.Trace("RemoveSotChannel channelCode:{0} successfully.", channelCode);
                }
                else
                {
                    logEx.Trace("RemoveSotChannel channelCode:{0} failed.", channelCode);
                }
            }
            catch (System.Exception ex)
            {
                logEx.Error(ex, "RemoveSotChannel Exception.");
            }

            return isSuccess;
        }