Exemple #1
0
        private void AnalyseRunner(JObject obj)
        {
            Runner = obj["runner"].ToString();

            Executor = RunnerFactory.GetRunnerExecutorByName(Runner);
            Analyzer = RunnerFactory.GetRunnerAnalyzerByName(Runner);

            if (Executor == null || Analyzer == null)
            {
                throw new Exception($"执行器 {Runner} 不支持!");
            }
        }