comparison Implab.Playground/Program.cs @ 280:f07be402ab02 v3

Added Trace<T>.Debug(...) method for debug messages Added ContainerBuilde.LoadConfig(Uri) method
author cin
date Fri, 25 May 2018 19:15:26 +0300
parents 8714471e8d78
children
comparison
equal deleted inserted replaced
279:8714471e8d78 280:f07be402ab02
87 } 87 }
88 88
89 public class Program { 89 public class Program {
90 90
91 static void Main(string[] args) { 91 static void Main(string[] args) {
92 var u1 = new Uri("/some/one");
93
94 Console.WriteLine($"{u1.IsAbsoluteUri}: {u1}");
95
96 var u2 = new Uri(u1, "../../two");
97
98 Console.WriteLine($"{u2.IsAbsoluteUri}: {u2}");
99
100 }
101
102 static void Main2(string[] args) {
92 var listener = new SimpleTraceListener(Console.Out); 103 var listener = new SimpleTraceListener(Console.Out);
93 var source = Trace<TypeResolver>.TraceSource; 104 var source = Trace<TypeResolver>.TraceSource;
94 source.Switch.Level = SourceLevels.All; 105 source.Switch.Level = SourceLevels.All;
95 source.Listeners.Add(listener); 106 source.Listeners.Add(listener);
96 107