Пример #1
0
        public static ErrorDataReceivedEventArgs LameErrorDataFilter(ErrorDataReceivedEventArgs e)
        {
            if (e == null || string.IsNullOrWhiteSpace(e.Data))
                return null;

            return e;
        }
Пример #2
0
        public static ErrorDataReceivedEventArgs FlacErrorDataFilter(ErrorDataReceivedEventArgs e)
        {
            if (e == null || string.IsNullOrWhiteSpace(e.Data))
                return null;

            if (e.Data.StartsWith("-: "))
                return new ErrorDataReceivedEventArgs(e.Data.Substring(3));

            return e;
        }
 private void OnErrorDataReceived(ErrorDataReceivedEventArgs e)
 {
     var handler = ErrorDataReceived;
     if (handler != null)
         handler(this, e);
 }
Пример #4
0
        private void OnErrorDataReceived(ErrorDataReceivedEventArgs e)
        {
            if (ErrorDataFilter != null)
                e = ErrorDataFilter(e);

            if (e == null)
                return;

            ErrorDataReceivedEventHandler handler = ErrorDataReceived;
            if (handler != null)
                handler(this, e);
        }