示例#1
0
 public static void LogProcessActiveFileDocument(CountLogAggregator <object> logAggregator, Guid _, bool processed)
 {
     if (processed)
     {
         logAggregator.IncreaseCount(ActiveFileProcessDocument);
     }
     else
     {
         logAggregator.IncreaseCount(ActiveFileProcessDocumentCancellation);
     }
 }
示例#2
0
        public static void LogProcessProject(CountLogAggregator <object> logAggregator, Guid projectId, bool processed)
        {
            if (processed)
            {
                logAggregator.IncreaseCount(ProcessProject);
            }
            else
            {
                logAggregator.IncreaseCount(ProcessProjectCancellation);
            }

            logAggregator.IncreaseCount(ValueTuple.Create(ProcessProject, projectId));
        }
示例#3
0
        public static void LogWorkItemEnqueue(
            CountLogAggregator <object> 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);
            }
        }
示例#4
0
 public static void LogProcessProjectNotExist(CountLogAggregator <object> logAggregator)
 => logAggregator.IncreaseCount(ProjectNotExist);
示例#5
0
 public static void LogProcessOpenDocument(CountLogAggregator <object> logAggregator, Guid documentId)
 {
     logAggregator.IncreaseCount(OpenDocument);
     logAggregator.IncreaseCount(ValueTuple.Create(OpenDocument, documentId));
 }
示例#6
0
 public static void LogResetStates(CountLogAggregator <object> logAggregator)
 => logAggregator.IncreaseCount(ResetStates);
示例#7
0
 public static void LogHigherPriority(CountLogAggregator <object> logAggregator, Guid documentId)
 {
     logAggregator.IncreaseCount(HigherPriority);
     logAggregator.IncreaseCount(ValueTuple.Create(HigherPriority, documentId));
 }
示例#8
0
 public static void LogWorkItemEnqueue(CountLogAggregator <object> logAggregator, ProjectId _)
 => logAggregator.IncreaseCount(ProjectEnqueue);
示例#9
0
 public static void LogActiveFileEnqueue(CountLogAggregator <object> logAggregator)
 => logAggregator.IncreaseCount(ActiveFileEnqueue);
示例#10
0
 public static void LogGlobalOperation(CountLogAggregator <object> logAggregator)
 => logAggregator.IncreaseCount(GlobalOperation);
示例#11
0
 public static void LogWorkspaceEvent(CountLogAggregator <WorkspaceChangeKind> logAggregator, WorkspaceChangeKind kind)
 => logAggregator.IncreaseCount(kind);