Example #1
0
 public static ITrace Trace(this IEnableTrace trace)
 {
     if (ServiceLocator.TraceFatory != null)
     {
         return(ServiceLocator.TraceFatory.CreateTrace(trace) ?? new NullTrace());
     }
     return(new NullTrace());
 }
Example #2
0
 public ITrace CreateTrace(IEnableTrace trace)
 {
     return(new Trace(trace, _switches));
 }
Example #3
0
 public Trace(IEnableTrace trace, IEnumerable <string> switches)
 {
     _source   = trace;
     _switches = new HashSet <string>(switches, StringComparer.OrdinalIgnoreCase);
 }
Example #4
0
 public ITrace CreateTrace(IEnableTrace trace)
 {
     return new Trace(trace, _switches);
 }
Example #5
0
 public Trace(IEnableTrace trace, IEnumerable<string> switches)
 {
     _source = trace;
     _switches = new HashSet<string>(switches, StringComparer.OrdinalIgnoreCase);
 }