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