Cgw.Channel.MonitorChannelRelationManager.ErrorReport C# (CSharp) Method

ErrorReport() private method

软终端错误回调
private ErrorReport ( string label, SotErrorType errType ) : void
label string
errType SotErrorType
return void
        private void ErrorReport(string label, SotErrorType errType)
        {
            NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
            logEx.Trace("ErrorReport label={0}, errType={1}.", label, errType);

            if (errType == SotErrorType.InitStackErr)
            {
                // to do
                logEx.Error("ErrorReport InitStackErr.");
            }
            else if (errType == SotErrorType.RtpSessionCreateErr)
            {
                this.monitorChannelManager.DisableChannel(label);
                logEx.Error("ErrorReport create rtp session error, label={0}.", label);
            }
            else
            {

            }
        }