当前位置: 首页>>代码示例>>C#>>正文


C# LogAggregator.IncreaseCount方法代码示例

本文整理汇总了C#中LogAggregator.IncreaseCount方法的典型用法代码示例。如果您正苦于以下问题:C# LogAggregator.IncreaseCount方法的具体用法?C# LogAggregator.IncreaseCount怎么用?C# LogAggregator.IncreaseCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LogAggregator的用法示例。


在下文中一共展示了LogAggregator.IncreaseCount方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LogAnalyzerCrashCount

        public static void LogAnalyzerCrashCount(DiagnosticAnalyzer analyzer, Exception ex, LogAggregator logAggregator, ProjectId projectId)
        {
            if (logAggregator == null || analyzer == null || ex == null || ex is OperationCanceledException)
            {
                return;
            }

            // TODO: once we create description manager, pass that into here.
            bool telemetry = DiagnosticAnalyzerLogger.AllowsTelemetry(null, analyzer, projectId);
            var tuple = ValueTuple.Create(telemetry, analyzer.GetType(), ex.GetType());
            logAggregator.IncreaseCount(tuple);
        }
开发者ID:Rickinio,项目名称:roslyn,代码行数:12,代码来源:DiagnosticAnalyzerLogger.cs

示例2: LogProcessProjectNotExist

 public static void LogProcessProjectNotExist(LogAggregator logAggregator)
 {
     logAggregator.IncreaseCount(ProjectNotExist);
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:4,代码来源:SolutionCrawlerLogger.cs

示例3: LogProcessProject

        public static void LogProcessProject(LogAggregator logAggregator, Guid projectId, bool processed)
        {
            if (processed)
            {
                logAggregator.IncreaseCount(ProcessProject);
            }
            else
            {
                logAggregator.IncreaseCount(ProcessProjectCancellation);
            }

            logAggregator.IncreaseCount(ValueTuple.Create(ProcessProject, projectId));
        }
开发者ID:daking2014,项目名称:roslyn,代码行数:13,代码来源:SolutionCrawlerLogger.cs

示例4: LogProcessDocumentNotExist

 public static void LogProcessDocumentNotExist(LogAggregator logAggregator)
 {
     logAggregator.IncreaseCount(DocumentNotExist);
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:4,代码来源:SolutionCrawlerLogger.cs

示例5: LogProcessDocument

        public static void LogProcessDocument(LogAggregator logAggregator, Guid documentId, bool processed)
        {
            if (processed)
            {
                logAggregator.IncreaseCount(ProcessDocument);
            }
            else
            {
                logAggregator.IncreaseCount(ProcessDocumentCancellation);
            }

            logAggregator.IncreaseCount(ValueTuple.Create(ProcessDocument, documentId));
        }
开发者ID:daking2014,项目名称:roslyn,代码行数:13,代码来源:SolutionCrawlerLogger.cs

示例6: LogProcessActiveFileDocument

 public static void LogProcessActiveFileDocument(LogAggregator logAggregator, Guid documentId, bool processed)
 {
     if (processed)
     {
         logAggregator.IncreaseCount(ActiveFileProcessDocument);
     }
     else
     {
         logAggregator.IncreaseCount(ActiveFileProcessDocumentCancellation);
     }
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:11,代码来源:SolutionCrawlerLogger.cs

示例7: LogProcessOpenDocument

 public static void LogProcessOpenDocument(LogAggregator logAggregator, Guid documentId)
 {
     logAggregator.IncreaseCount(OpenDocument);
     logAggregator.IncreaseCount(ValueTuple.Create(OpenDocument, documentId));
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:5,代码来源:SolutionCrawlerLogger.cs

示例8: LogResetStates

 public static void LogResetStates(LogAggregator logAggregator)
 {
     logAggregator.IncreaseCount(ResetStates);
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:4,代码来源:SolutionCrawlerLogger.cs

示例9: LogHigherPriority

 public static void LogHigherPriority(LogAggregator logAggregator, Guid documentId)
 {
     logAggregator.IncreaseCount(HigherPriority);
     logAggregator.IncreaseCount(ValueTuple.Create(HigherPriority, documentId));
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:5,代码来源:SolutionCrawlerLogger.cs

示例10: LogWorkItemEnqueue

        public static void LogWorkItemEnqueue(
            LogAggregator logAggregator, string language, DocumentId documentId, InvocationReasons reasons, bool lowPriority, SyntaxPath activeMember, bool added)
        {
            logAggregator.IncreaseCount(language);
            logAggregator.IncreaseCount(added ? NewWorkItem : UpdateWorkItem);

            if (documentId != null)
            {
                logAggregator.IncreaseCount(activeMember == null ? TopLevel : MemberLevel);

                if (lowPriority)
                {
                    logAggregator.IncreaseCount(LowerPriority);
                    logAggregator.IncreaseCount(ValueTuple.Create(LowerPriority, documentId.Id));
                }
            }

            foreach (var reason in reasons)
            {
                logAggregator.IncreaseCount(reason);
            }
        }
开发者ID:daking2014,项目名称:roslyn,代码行数:22,代码来源:SolutionCrawlerLogger.cs

示例11: LogActiveFileEnqueue

 public static void LogActiveFileEnqueue(LogAggregator logAggregator)
 {
     logAggregator.IncreaseCount(ActiveFileEnqueue);
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:4,代码来源:SolutionCrawlerLogger.cs

示例12: LogGlobalOperation

 public static void LogGlobalOperation(LogAggregator logAggregator)
 {
     logAggregator.IncreaseCount(GlobalOperation);
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:4,代码来源:SolutionCrawlerLogger.cs

示例13: LogWorkspaceEvent

 public static void LogWorkspaceEvent(LogAggregator logAggregator, int kind)
 {
     logAggregator.IncreaseCount(kind);
 }
开发者ID:daking2014,项目名称:roslyn,代码行数:4,代码来源:SolutionCrawlerLogger.cs


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