Exemple #1
0
 private Evaluator(
     IClock clock,
     CustomTraceListeners customTraceListeners,
     CustomTraceLevel customTraceLevel,
     EvaluatorExitLogger evaluatorExitLogger)
 {
     _evaluatorExitLogger = evaluatorExitLogger;
     _clock = clock;
     SetCustomTraceListeners(customTraceListeners, customTraceLevel);
 }
Exemple #2
0
 private Evaluator(
     RuntimeClock clock,
     EvaluatorRuntime evaluatorRuntime,
     CustomTraceListeners customTraceListeners,
     CustomTraceLevel customTraceLevel)
 {
     _clock = clock;
     SetCustomTraceListeners(customTraceListeners, customTraceLevel);
     SetRuntimeHandlers(evaluatorRuntime, clock);
 }
Exemple #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);
 }