private void LoadAssembly() { var ant = GetConfig().GetData("ant"); _fileName = ant.Value<string>("file"); _className = ant.Value<string>("class"); if (_fileName == "" || _className == "") throw new Exception("Ant를 로드할 수 없습니다."); _assembly = Assembly.LoadFrom(_fileName); _localAnt = _assembly.CreateInstance(_className) as AntModel; if (_localAnt == null) throw new Exception("AntModel을 로드 할 수 없습니다."); }
public LocalAnt(Ants ants, AntModel model) { _ants = ants; _model = model; _transaction = new Transaction.LocalTransaction(this); }