コード例 #1
0
ファイル: AntLoader.cs プロジェクト: shlee322/Netronics
        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을 로드 할 수 없습니다.");
        }
コード例 #2
0
ファイル: LocalAnt.cs プロジェクト: shlee322/Netronics
 public LocalAnt(Ants ants, AntModel model)
 {
     _ants = ants;
     _model = model;
     _transaction = new Transaction.LocalTransaction(this);
 }