• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Diagnostics.DataReceivedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Diagnostics.DataReceivedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# DataReceivedEventArgs类的具体用法?C# DataReceivedEventArgs怎么用?C# DataReceivedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DataReceivedEventArgs类属于System.Diagnostics命名空间,在下文中一共展示了DataReceivedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: adb_OutputDataReceived

 void adb_OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (this.InvokeRequired)
         this.Invoke(new Action<object, DataReceivedEventArgs>(adb_OutputDataReceived), sender, e);
     else
         textAdb.AppendText(filterData(e.Data));
 }
开发者ID:Jeenu,项目名称:LogcatSharp,代码行数:7,代码来源:frmMain.cs


示例2: Convert__OutputDataReceived

 void Convert__OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (!String.IsNullOrEmpty(e.Data))
     {
         _sbOutput.AppendLine(e.Data);
     }
 }
开发者ID:Jiyuu,项目名称:galleryserverpro,代码行数:7,代码来源:ImageMagick.cs


示例3: OutputReceivedDataEventHandler

 public static void OutputReceivedDataEventHandler(Object Sender, DataReceivedEventArgs Line)
 {
     if ((Line != null) && (Line.Data != null))
     {
         Log.TraceInformation(Line.Data);
     }
 }
开发者ID:Art1stical,项目名称:AHRUnrealEngine,代码行数:7,代码来源:UEDeployAndroid.cs


示例4: OnVlcErrorDataReceived

        /// <summary>
        /// Handles the ErrorDataReceived event of the vlc process.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Diagnostics.DataReceivedEventArgs" /> instance containing the event data.</param>
        private void OnVlcErrorDataReceived(object sender, DataReceivedEventArgs e)
        {
            if (e == null)
                return;

            Trace.TraceError(e.Data);
        }
开发者ID:feg-giessen,项目名称:videocommander,代码行数:12,代码来源:VlcCommander.cs


示例5: OnErrorDataReceived

        private static void OnErrorDataReceived(object sender, DataReceivedEventArgs e)
        {
            if (e == null || String.IsNullOrWhiteSpace(e.Data))
                return;

            IISLogger.Error(e.Data);
        }
开发者ID:Normmatt,项目名称:NzbDrone,代码行数:7,代码来源:IISProvider.cs


示例6: AppendErrorData

 private void AppendErrorData(object sender, DataReceivedEventArgs e)
 {
     if (e.Data == null)
         errorWaitHandle.Set();
     else
         errorOuput.AppendLine(e.Data);
 }
开发者ID:cfiet,项目名称:resharper-jshint,代码行数:7,代码来源:ScriptRunner.cs


示例7: process_OutputDataReceived

 private void process_OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (e.Data != null)
     {
         this.logOutputBuffer.AppendLine(e.Data);
     }
 }
开发者ID:denglinghua,项目名称:PhotoRenamer,代码行数:7,代码来源:ExifToolRenamer.cs


示例8: FaacProcess_OutputDataReceived

        private void FaacProcess_OutputDataReceived(object sender, DataReceivedEventArgs e)
        {
            if (e.Data != null && e.Data.Length > 0)
            {
                Regex R = new Regex(@"\(\s*(\d+)%\)");
                Match M = R.Match(e.Data);
                if (M.Success)
                {
                    int NewProgress = Convert.ToInt32(M.Groups[1].Value);

                    if (NewProgress != Progress && !_cancelling)
                    {
                        Progress = NewProgress;
                        // raise the progress changed event
                        ExternalProcessProgressChangedEventArgs eArgs = new ExternalProcessProgressChangedEventArgs(
                          Progress, 1, 1, "Encoding", null, null);
                        async.Post(delegate(object ea)
                        { OnTaskProgressChanged((ExternalProcessProgressChangedEventArgs)ea); },
                          eArgs);
                    }
                    //Console.CursorLeft = 0;
                    //Console.Write(e.Data);
                }
                else
                {
                    //Console.WriteLine(e.Data);
                }
            }
        }
开发者ID:spol,项目名称:Sprocket,代码行数:29,代码来源:Faac.cs


示例9: cmd_ErrorDataReceived

 private void cmd_ErrorDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (e.Data != null)
     {
         //MessageBox.Show(e.Data, "错误");
     }
 }
开发者ID:Jackie2014,项目名称:W1-IPC,代码行数:7,代码来源:frmMain-IPRetrieving.cs


示例10: ProcessOnErrorDataReceived

 private void ProcessOnErrorDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Data))
     {
         output.Add(e.Data);
     }
 }
开发者ID:AndreyPetrov1991,项目名称:SP,代码行数:7,代码来源:StatisticProcessExecuter.cs


示例11: Error

 private void Error(object sender,DataReceivedEventArgs e)
 {
     if (e.Data == null)
         Process.ErrorDataReceived -= Error;
     else
         Core.Log(this, e.Data);
 }
开发者ID:yeyaowei,项目名称:RHW-Simple-Server,代码行数:7,代码来源:ServerOptions.cs


示例12: OutputDataReceived

 /// <summary>
 /// The output data received.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (e != null && e.Data != null)
     {
         this.Result = e.Data;
     }
 }
开发者ID:KatyaMarincheva,项目名称:SubtitleEditOriginal,代码行数:16,代码来源:CommandLineRunner.cs


示例13: printData

        public static void printData(object sender, DataReceivedEventArgs e)
        {
            // Critical section
            int pId = ((Process)sender).Id;

            if (!colors.ContainsKey(pId))
            {
                lock (lockObject)
                {
                    if (!colors.ContainsKey(pId))
                    {
                        colors.Add(pId, getColor());
                    }
                }
            }

            Console.ForegroundColor = colors[pId];
            if (String.IsNullOrEmpty(e.Data))
            {
                Console.WriteLine("Process " + (int)colors[pId] + " exited.");
            }
            else
            {
                Console.WriteLine((int)colors[pId] + " " + e.Data);
            }
            Console.ResetColor();
        }
开发者ID:niqbal,项目名称:Foreman-win,代码行数:27,代码来源:Program.cs


示例14: proc_DataReceived

 public void proc_DataReceived(object sender, DataReceivedEventArgs e)
 {
     if (!String.IsNullOrEmpty(e.Data))
     {
         this.Srv_Output.Invoke(new UpdateOutputCallback(this.updateoutput), new object[] { e.Data });
     }
 }
开发者ID:zparta,项目名称:Teeworlds-Server-Manager,代码行数:7,代码来源:Form1.cs


示例15: OutputDataReceived

 void OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Data))
     {
         Host.UI.WriteLine(e.Data);
     }
 }
开发者ID:hangar18rip,项目名称:ode-task-lib,代码行数:7,代码来源:StartProcessExtendedCmdLet.cs


示例16: Process_OutputDataReceived

 public void Process_OutputDataReceived(object sender, DataReceivedEventArgs e)
 {
     if (string.IsNullOrEmpty(e.Data)) {
     return;
       }
       txtConsoleOutput.AppendText(e.Data + "\n");
 }
开发者ID:wcm-io-devops,项目名称:aem-manager,代码行数:7,代码来源:ConsoleWindow.cs


示例17: ProcessOnErrorDataReceived

 private void ProcessOnErrorDataReceived(object sender, DataReceivedEventArgs dataReceivedEventArgs)
 {
     if (!string.IsNullOrEmpty(dataReceivedEventArgs.Data)) // happened often and added unnecessary blank line to output
     {
         logger.WriteLine(LogKind.Default, dataReceivedEventArgs.Data); // warnings also comes as errors so Default log kind is used to avoid red output for things that are just warnings
     }
 }
开发者ID:omariom,项目名称:BenchmarkDotNet,代码行数:7,代码来源:AsynchronousProcessOutputLogger.cs


示例18: ErrorHandler

 private static void ErrorHandler(object sendingProcess, DataReceivedEventArgs outLine)
 {
     if (outLine.Data != null)
     {
         Console.WriteLine("Error:" + outLine.Data);
     }
 }
开发者ID:bueti,项目名称:azure-sdk-tools,代码行数:7,代码来源:PSScriptExecutor.cs


示例19: VBusMonitorOnDataReceived

        private static void VBusMonitorOnDataReceived(object sender, DataReceivedEventArgs e)
        {
            //Receives this:
            // LPDU: BC 00 01 08 06 F1 00 81 3C :L_Data low from 0.0.1 to 1/0/6 hops: 07 T_DATA_XXX_REQ A_GroupValue_Write (small) 01

            if (!e.Data.Contains("A_GroupValue_Write"))
                return;

            string address = string.Empty;
            string value = string.Empty;

            Regex regex = new Regex(Regex1);
            Match match = regex.Match(e.Data);

            if (match.Success)
                address = match.Groups[1].Value;

            regex = new Regex(Regex2);
            match = regex.Match(e.Data);

            if (match.Success)
                value = match.Groups[1].Value;

            if (string.IsNullOrWhiteSpace(address) || string.IsNullOrWhiteSpace(value))
                return;

            //TODO: check how it works if value received is more than 1 byte

            if (GroupWrite.IsGroupWriteAvailable())
                GroupWrite.Send(address, value);
        }
开发者ID:CumpsD,项目名称:knx.net,代码行数:31,代码来源:VBusMonitorManager.cs


示例20: ReadOutputLine

 private void ReadOutputLine(object sender, DataReceivedEventArgs e)
 {
   if (!string.IsNullOrEmpty(e.Data))
   {
     Log.Debug($"{this.LogPrefix} {e.Data}", this);
   }
 }
开发者ID:kamsar,项目名称:Habitat,代码行数:7,代码来源:ProcessRunner.cs



注:本文中的System.Diagnostics.DataReceivedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Diagnostics.EventInstance类代码示例发布时间:2022-05-26
下一篇:
C# Diagnostics.CounterCreationDataCollection类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap