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

C# Framework.CustomBuildEventArgs类代码示例

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

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



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

示例1: CustomEvent

 void CustomEvent(object sender, CustomBuildEventArgs e)
 {
     //Do nothing, really a place holder for sub-classes
 }
开发者ID:JustJenFelice,项目名称:sayed-samples,代码行数:4,代码来源:XmlLogger.cs


示例2: LogCustomEvent

		// Raises a custom event to all registered loggers.
		public void LogCustomEvent (CustomBuildEventArgs e)
		{
			engine.EventSource.FireCustomEventRaised (this, e);
		}
开发者ID:carrie901,项目名称:mono,代码行数:5,代码来源:BuildEngine.cs


示例3: CustomHandler

 /// <summary>
 /// This is the delegate for CustomHandler events.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="buildEvent"></param>
 protected virtual void CustomHandler(object sender, CustomBuildEventArgs buildEvent)
 {
     // NOTE: This may run on a background thread!
     QueueOutputEvent(MessageImportance.High, buildEvent);
 }
开发者ID:ChrisJamesSadler,项目名称:Cosmos,代码行数:10,代码来源:IDEBuildLogger.cs


示例4: LogCustomEvent

 /// <summary>
 /// Raises a custom event to all registered loggers.
 /// </summary>
 /// <param name="e">The event data.</param>
 public void LogCustomEvent(CustomBuildEventArgs e)
 {
     this.context.Information(e.Message);
 }
开发者ID:marcosnz,项目名称:Cake.MSBuildTask,代码行数:8,代码来源:CakeMSBuildEngine.cs


示例5: CustomHandler

		/// <summary>
		/// This is the delegate for CustomHandler events.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="buildEvent"></param>
		private void CustomHandler(object sender, CustomBuildEventArgs buildEvent)
		{
            try
            {
                LogEvent(sender, buildEvent);
            }
            catch (Exception e)
            {
                Debug.Assert(false, "Problem logging custom event: " + e.Message + " at " + e.TargetSite);
                // swallow the exception
            }
		}
开发者ID:CaptainHayashi,项目名称:visualfsharp,代码行数:17,代码来源:IDEBuildLogger.cs


示例6: MyCustomBuildHandler

 /// <summary>
 /// Log and record the number of custom build events.
 /// </summary>
 internal void MyCustomBuildHandler(object s, CustomBuildEventArgs e)
 {
     _numberOfCustom++;
     _lastCustom = e;
     if (e.Message != null)
     {
         Console.Out.WriteLine("CustomEvent:" + e.Message.ToString());
     }
 }
开发者ID:ChronosWS,项目名称:msbuild,代码行数:12,代码来源:TaskHost_Tests.cs


示例7: LogCustomEvent

 public void LogCustomEvent(CustomBuildEventArgs e)
 {
     _log.LogMessage(e.Message);
 }
开发者ID:dsgouda,项目名称:buildtools,代码行数:4,代码来源:TestBuildEngine.cs


示例8: RaiseCustomEvent

        /// <summary>
        /// Raises a custom event to all registered loggers.
        /// </summary>
        /// <param name="sender">sender of the event</param>
        /// <param name="buildEvent">CustomBuildEventArgs</param>
        /// <exception cref="LoggerException">When EventHandler raises an logger exception the LoggerException is rethrown</exception>
        /// <exception cref="InternalLoggerException">Any exceptions which are not LoggerExceptions are wrapped in an InternalLoggerException</exception>
        /// <exception cref="Exception">ExceptionHandling.IsCriticalException exceptions will not be wrapped</exception>
        private void RaiseCustomEvent(object sender, CustomBuildEventArgs buildEvent)
        {
            if (CustomEventRaised != null)
            {
                try
                {
                    CustomEventRaised(sender, buildEvent);
                }
                catch (LoggerException)
                {
                    // if a logger has failed politely, abort immediately
                    // first unregister all loggers, since other loggers may receive remaining events in unexpected orderings
                    // if a fellow logger is throwing in an event handler.
                    this.UnregisterAllEventHandlers();
                    throw;
                }
                catch (Exception exception)
                {
                    // first unregister all loggers, since other loggers may receive remaining events in unexpected orderings
                    // if a fellow logger is throwing in an event handler.
                    this.UnregisterAllEventHandlers();

                    if (ExceptionHandling.IsCriticalException(exception))
                    {
                        throw;
                    }

                    InternalLoggerException.Throw(exception, buildEvent, "FatalErrorWhileLogging", false);
                }
            }

            RaiseAnyEvent(sender, buildEvent);
        }
开发者ID:cameron314,项目名称:msbuild,代码行数:41,代码来源:EventSourceSink.cs


示例9: CustomBuildEventRaised

 private void CustomBuildEventRaised(object sender, CustomBuildEventArgs e)
 {
     this.LogMessage("custom", e.Message, MessageImportance.Normal);
 }
开发者ID:hamidshahid,项目名称:MSBuildExtensionPack,代码行数:4,代码来源:XmlFileLogger.cs


示例10: CustomEventHandler

        /// <summary>
        /// Prints a custom event
        /// </summary>
        public void CustomEventHandler(object sender, CustomBuildEventArgs e)
        {
            InitializeBaseConsoleLogger(); // for compat: see DDB#136924

            _consoleLogger.CustomEventHandler(sender, e);
        }
开发者ID:nikson,项目名称:msbuild,代码行数:9,代码来源:ConsoleLogger.cs


示例11: LogCustomEvent

 public virtual void LogCustomEvent(CustomBuildEventArgs e)
 {
   throw new Exception("The method or operation is not implemented.");
 }
开发者ID:mgagne-atman,项目名称:Projects,代码行数:4,代码来源:GenerateMonoRailSiteTreeTaskTests.cs


示例12: LogCustomEvent

 /// <summary>
 /// Allows tasks to raise custom events to all registered loggers.
 /// The build engine may perform some filtering or
 /// pre-processing on the events, before dispatching them.
 /// </summary>
 /// <param name="e">Details of event to raise.</param>
 public void LogCustomEvent(CustomBuildEventArgs e)
 {
     OnLogBuildEvent(e);
 }
开发者ID:CommonBuildToolset,项目名称:CBT.Modules,代码行数:10,代码来源:CBTBuildEngine.cs


示例13: CustomEventHandler

 /// <summary>
 /// Prints a custom event
 /// </summary>
 public override void CustomEventHandler(object sender, CustomBuildEventArgs e)
 {
     // if verbosity is detailed or diagnostic
     if (IsVerbosityAtLeast(LoggerVerbosity.Detailed))
     {
         // ignore custom events with null messages -- some other
         // logger will handle them appropriately
         if (e.Message != null)
         {
             ShowDeferredMessages();
             WriteLinePretty(e.Message);
         }
     }
 }
开发者ID:cameron314,项目名称:msbuild,代码行数:17,代码来源:SerialConsoleLogger.cs


示例14: LogCustomEvent

 /// <summary>
 /// Unused.
 /// </summary>
 public void LogCustomEvent(CustomBuildEventArgs e)
 {
     throw new NotImplementedException();
 }
开发者ID:cameron314,项目名称:msbuild,代码行数:7,代码来源:TaskExecutionHost_Tests.cs


示例15: LogCustomEvent

		public void LogCustomEvent (CustomBuildEventArgs e)
		{
			event_source.FireCustomEventRaised (this, e);
		}
开发者ID:nlhepler,项目名称:mono,代码行数:4,代码来源:BuildEngine4.cs


示例16: LogCustomEvent

			public void LogCustomEvent(CustomBuildEventArgs e)
			{
				LoggedMessages.Add(e.Message);
			}
开发者ID:jwickberg,项目名称:libpalaso,代码行数:4,代码来源:GenerateReleaseArtifactsTests.cs


示例17: LogCustomEvent

		public void LogCustomEvent(CustomBuildEventArgs e)
		{
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:3,代码来源:LocalizeFieldWorksTests.cs


示例18: LogCustomEvent

 public void LogCustomEvent(CustomBuildEventArgs e)
 {
     log.Info(e.Message);
 }
开发者ID:tocsleung,项目名称:npanday,代码行数:4,代码来源:LogOnlyBuildEngine.cs


示例19: CustomHandler

 /// <summary>
 /// This is the delegate for CustomHandler events.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="buildEvent"></param>
 private void CustomHandler(object sender, CustomBuildEventArgs buildEvent)
 {
     LogEvent(sender, buildEvent);
 }
开发者ID:Jeremiahf,项目名称:wix3,代码行数:9,代码来源:idebuildlogger.cs


示例20: Source_CustomEventRaised

 /// <summary>
 /// Handle a custom event, these are mostly user created events
 /// </summary>
 /// <param name="sender">Who sent the event</param>
 /// <param name="e">Event raised on the event source</param>
 private void Source_CustomEventRaised(object sender, CustomBuildEventArgs e)
 {
     HandleEvent(e);
 }
开发者ID:ChronosWS,项目名称:msbuild,代码行数:9,代码来源:EventSourceSink_Tests.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Framework.ProjectFinishedEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Framework.BuildWarningEventArgs类代码示例发布时间: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