public ScriptLoader()
        {
            using (StreamReader reader = new StreamReader(SCRIPT_PARAMS))
            {
                string parameters = reader.ReadToEnd().Trim();
                _scriptParams = Newtonsoft.Json.JsonConvert.DeserializeObject <ScriptParams>(parameters);
            }

            List <string> files = new List <string>(Directory.GetFiles(ScriptEngine.FILE_DIRECTION_SCRIPTS));

            files.RemoveAll(s => s.EndsWith(".json"));
            _scriptParams.Scripts.AddRange(files);
            _scriptParams.Scripts = _scriptParams.Scripts.Distinct().ToList();

            _scriptEngine = new ScriptEngine(_scriptParams);
            _assembly     = _scriptEngine.Compile();
        }
 public ScriptEngine(ScriptParams parameters)
 {
     _scriptParams = parameters;
 }