public static void Execute(string modulesDir, IMHost host, string script, ModuleFinishedHandler callBack)
 {
     List<MCallData> lst = Parse(script);
     foreach(MCallData m in lst)
     {
         m.Execute(modulesDir, host, callBack);
     }
 }
示例#2
0
        public void Execute(string modulesDir, IMHost host, ModuleFinishedHandler callBack)
        {
            if (modulesDir == "")
                throw new Exception("Путь к хранилищу модулей не задан!");
            MConnect connect = new MConnect(Path.Combine(modulesDir, this.ModuleName));
            IModule module = connect.GetModuleInterface(this.ModuleParams);
            module.Execute(this.Commands, host);

            callBack(module);
        }