コード例 #1
0
        protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage)
        {
            if (UseTestCoordinator)
            {
                var nodeMessage = new MultiNodeLogMessageFragment(logMessage.When.Ticks, logMessage.Message,
                                                                  logMessage.NodeIndex, logMessage.NodeRole);

                TestCoordinatorActorRef.Tell(nodeMessage);
            }
        }
コード例 #2
0
        protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage)
        {
            if (UseTestCoordinator)
            {
                var nodeMessage = new MultiNodeLogMessageFragment(logMessage.When.Ticks, logMessage.Message,
                   logMessage.NodeIndex);

                TestCoordinatorActorRef.Tell(nodeMessage);
            }
        }
コード例 #3
0
        public static bool TryParseLogMessage(string messageStr, out LogMessageFragmentForNode logMessage)
        {
            var matchLog = NodeLogFragmentRegex.Match(messageStr);

            if (!matchLog.Success)
            {
                logMessage = null;
                return(false);
            }

            var message   = matchLog.Groups["message"].Value;
            var nodeIndex = Int32.Parse(matchLog.Groups["node"].Value);

            logMessage = new LogMessageFragmentForNode(nodeIndex, message, DateTime.UtcNow);

            return(true);
        }
コード例 #4
0
 private void WriteNodeMessage(LogMessageFragmentForNode nodeMessage)
 {
     Console.WriteLine(nodeMessage.ToString());
 }
コード例 #5
0
        protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage)
        {
            WriteNodeMessage(logMessage);

            base.HandleNodeMessageFragment(logMessage);
        }
コード例 #6
0
 private void WriteNodeMessage(LogMessageFragmentForNode nodeMessage)
 {
     Console.WriteLine(nodeMessage.ToString());
 }
コード例 #7
0
        protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage)
        {
            WriteNodeMessage(logMessage);

            base.HandleNodeMessageFragment(logMessage);
        }
コード例 #8
0
ファイル: MessageSink.cs プロジェクト: rogeralsing/akka.net
        public static bool TryParseLogMessage(string messageStr, out LogMessageFragmentForNode logMessage)
        {
            var matchLog = NodeLogFragmentRegex.Match(messageStr);
            if (!matchLog.Success)
            {
                logMessage = null;
                return false;
            }

            var message = matchLog.Groups["message"].Value;
            var nodeIndex = Int32.Parse(matchLog.Groups["node"].Value);
            logMessage = new LogMessageFragmentForNode(nodeIndex, message, DateTime.UtcNow);

            return true;
        }
コード例 #9
0
        protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage)
        {
            _teamCityTestWriter?.WriteStdOutput(logMessage.Message);

            base.HandleNodeMessageFragment(logMessage);
        }
コード例 #10
0
ファイル: MessageSinkActor.cs プロジェクト: zhanjian/akka.net
 /// <summary>
 /// Used for truncated messages (happens when there's a line break during standard I/O redirection from child nodes)
 /// </summary>
 protected abstract void HandleNodeMessageFragment(LogMessageFragmentForNode logMessageFragment);
コード例 #11
0
 /// <summary>
 /// Used for truncated messages (happens when there's a line break during standard I/O redirection from child nodes)
 /// </summary>
 protected abstract void HandleNodeMessageFragment(LogMessageFragmentForNode logMessageFragment);