LogMessagePacketBase.cs (53)
271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
306private LoggingEventType _eventType = LoggingEventType.Invalid;
389internal LoggingEventType EventType
424if (_eventType != LoggingEventType.CustomEvent)
463if (_eventType == LoggingEventType.TargetFinishedEvent && _targetFinishedTranslator != null)
491if (LoggingEventType.CustomEvent != _eventType)
519if (_eventType == LoggingEventType.TargetFinishedEvent && _targetFinishedTranslator != null)
622LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
623LoggingEventType.BuildFinishedEvent => new BuildFinishedEventArgs(null, null, false),
624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal),
625LoggingEventType.BuildStartedEvent => new BuildStartedEventArgs(null, null),
626LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
627LoggingEventType.ProjectFinishedEvent => new ProjectFinishedEventArgs(null, null, null, false),
628LoggingEventType.ProjectStartedEvent => new ProjectStartedEventArgs(null, null, null, null, null, null),
629LoggingEventType.TargetStartedEvent => new TargetStartedEventArgs(null, null, null, null, null),
630LoggingEventType.TargetFinishedEvent => new TargetFinishedEventArgs(null, null, null, null, null, false),
631LoggingEventType.TaskStartedEvent => new TaskStartedEventArgs(null, null, null, null, null),
632LoggingEventType.TaskFinishedEvent => new TaskFinishedEventArgs(null, null, null, null, null, false),
633LoggingEventType.TaskCommandLineEvent => new TaskCommandLineEventArgs(null, null, MessageImportance.Normal),
634LoggingEventType.ResponseFileUsedEvent => new ResponseFileUsedEventArgs(null),
677private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg)
682return LoggingEventType.BuildMessageEvent;
686return LoggingEventType.TaskCommandLineEvent;
696return LoggingEventType.ProjectFinishedEvent;
700return LoggingEventType.ProjectStartedEvent;
704return LoggingEventType.ExternalProjectStartedEvent;
708return LoggingEventType.ExternalProjectFinishedEvent;
815return LoggingEventType.TargetStartedEvent;
819return LoggingEventType.TargetFinishedEvent;
823return LoggingEventType.TaskStartedEvent;
827return LoggingEventType.TaskFinishedEvent;
831return LoggingEventType.BuildFinishedEvent;
835return LoggingEventType.BuildStartedEvent;
839return LoggingEventType.BuildWarningEvent;
843return LoggingEventType.BuildErrorEvent;
847return LoggingEventType.ResponseFileUsedEvent;
851return LoggingEventType.CustomEvent;
859private void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator)
885case LoggingEventType.BuildMessageEvent:
888case LoggingEventType.ResponseFileUsedEvent:
891case LoggingEventType.TaskCommandLineEvent:
894case LoggingEventType.BuildErrorEvent:
897case LoggingEventType.BuildWarningEvent:
1210private BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator)
1233LoggingEventType.TaskCommandLineEvent => ReadTaskCommandLineEventFromStream(translator, message, helpKeyword, senderName),
1234LoggingEventType.BuildErrorEvent => ReadTaskBuildErrorEventFromStream(translator, message, helpKeyword, senderName),
1235LoggingEventType.BuildMessageEvent => ReadBuildMessageEventFromStream(translator, message, helpKeyword, senderName),
1236LoggingEventType.ResponseFileUsedEvent => ReadResponseFileUsedEventFromStream(translator, message, helpKeyword, senderName),
1237LoggingEventType.BuildWarningEvent => ReadBuildWarningEventFromStream(translator, message, helpKeyword, senderName),