annotate Implab.Diagnostics.Interactive/TraceViewItem.cs @ 221:8808383fcb94 v2

fixed recursion in Safe.Dispose with IEnumerable
author cin
date Fri, 23 Jun 2017 01:03:42 +0300
parents 9c32ef39b851
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
45
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
1 using System;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
2 using System.Collections.Generic;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
3 using System.Linq;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
4 using System.Text;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
5 using System.Threading.Tasks;
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
6
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
7 namespace Implab.Diagnostics.Interactive {
47
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
8 public class TraceViewItem {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
9 string m_formattedValue;
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
10
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
11 public string Message { get; set; }
214
9c32ef39b851 Added the time delta column to the interactive trace listener
cin
parents: 48
diff changeset
12 public int TimeDelta { get; set; }
47
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
13 public int Timestamp { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
14 public int Indent { get; set; }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
15 public int Thread { get; set; }
48
d9d794b61bb9 Interactive tracing
cin
parents: 47
diff changeset
16 public string Channel { get; set; }
47
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
17
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
18 public string FormattedMessage {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
19 get {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
20 if (m_formattedValue == null) {
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
21 m_formattedValue = Message.Replace("\r",String.Empty).Replace("\n", " | ");
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
22 }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
23 return m_formattedValue;
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
24 }
b181f7bcb259 refactoring, interactive tarce log almost complete
cin
parents: 45
diff changeset
25 }
45
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
26 }
d10034588e38 initial work on interactive logger
cin
parents:
diff changeset
27 }