Ejemplo n.º 1
0
 private Evaluator(
     IClock clock,
     CustomTraceListeners customTraceListeners,
     CustomTraceLevel customTraceLevel,
     EvaluatorExitLogger evaluatorExitLogger)
 {
     _evaluatorExitLogger = evaluatorExitLogger;
     _clock = clock;
     SetCustomTraceListeners(customTraceListeners, customTraceLevel);
 }
Ejemplo n.º 2
0
 private Evaluator(
     RuntimeClock clock,
     EvaluatorRuntime evaluatorRuntime,
     CustomTraceListeners customTraceListeners,
     CustomTraceLevel customTraceLevel)
 {
     _clock = clock;
     SetCustomTraceListeners(customTraceListeners, customTraceLevel);
     SetRuntimeHandlers(evaluatorRuntime, clock);
 }
Ejemplo n.º 3
0
 private static void SetCustomTraceListeners(CustomTraceListeners customTraceListener, CustomTraceLevel traceLevel)
 {
     ISet<TraceListener> customTraceListeners = customTraceListener.Listeners;
     foreach (TraceListener listener in customTraceListeners)
     {
         Logger.AddTraceListener(listener);
     }
     logger = Logger.GetLogger(typeof(Evaluator));
     Logger.SetCustomLevel(traceLevel.TraceLevel);
 }