Пример #1
0
 internal static ScriptEngine MakeEngine(string scriptLanguage, IWorkItemRepository workItemRepository, ILogEvents logger, bool debug)
 {
     logger.BuildingScriptEngine(scriptLanguage);
     Type t = GetScriptEngineType(scriptLanguage);
     var ctor = t.GetConstructor(new Type[] { typeof(IWorkItemRepository), typeof(ILogEvents), typeof(bool) });
     ScriptEngine engine = ctor.Invoke(new object[] { workItemRepository, logger, debug }) as ScriptEngine;
     return engine;
 }
Пример #2
0
        internal static ScriptEngine MakeEngine(string scriptLanguage, ILogEvents logger, bool debug)
        {
            logger.BuildingScriptEngine(scriptLanguage);
            Type         t      = GetScriptEngineType(scriptLanguage);
            var          ctor   = t.GetConstructor(new Type[] { typeof(ILogEvents), typeof(bool) });
            ScriptEngine engine = ctor.Invoke(new object[] { logger, debug }) as ScriptEngine;

            return(engine);
        }