예제 #1
0
 public void ResultInFile(TraceResult traceResult, string fileName)
 {
     SerializeResult(traceResult).Save(fileName + ".xml");
 }
예제 #2
0
 public void AddChild(TraceResult traceResult)
 {
     ChildTraceResults.Add(traceResult);
 }
예제 #3
0
 public void ResultInStream(TraceResult traceResult, Stream stream)
 {
     SerializeResult(traceResult).Save(stream);
 }
예제 #4
0
 public void ResultInStream(TraceResult traceResult, Stream stream)
 {
     byte[] text = Encoding.ASCII.GetBytes(SerializeResult(traceResult).ToString());
     stream.Write(text, 0, text.Length);
 }
예제 #5
0
 internal ThreadTraceInfo(TraceResult traceResult)
 {
     ThreadRootTraceResult = new List <TraceResult>();
     ThreadRootTraceResult.Add(traceResult);
     StartedTraces = new Stack <TraceResult>();
 }
예제 #6
0
 public void ResultInFile(ISerializer serializer, TraceResult result, string fileName)
 {
     serializer.ResultInFile(result, fileName);
 }
예제 #7
0
 public void ResultInConsole(ISerializer serializer, TraceResult result)
 {
     serializer.ResultInStream(result, Console.OpenStandardOutput());
 }
예제 #8
0
 public Tracer()
 {
     dictionary = new ConcurrentDictionary <int, ThreadTracer>();
     trResult   = new TraceResult(dictionary);
 }