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;
}