Beispiel #1
0
 /// <summary>
 /// Logs the specified text by raising the LogWritten event.
 /// </summary>
 /// <param name="text">The text.</param>
 private void Log(string text)
 {
     text = "[C] " + text;
     NotificationBroker.Send(new LogWrittenNotification {
         Text = text, Sender = this.GetType().FullName, Stamp = DateTime.Now
     }, NotificationScope.Local);
 }
Beispiel #2
0
        public override void Update(uint jobId, string xmlResultMessage)
        {
            string text = string.Format("[R] jobId({0}) result({1}):", jobId, xmlResultMessage);

            NotificationBroker.Send(new LogWrittenNotification {
                Text = text, Sender = this.GetType().FullName, Stamp = DateTime.Now
            }, NotificationScope.Local);
        }