示例#1
0
        public string RunScript(Macro m, Ledger l, MacroScriptParameters parameters = null)
        {
            var scriptRunner = new MacroScriptRunner();
            var script       = m.Script;

            if (parameters != null)
            {
                script = parameters.ReplaceParameters(m);
            }
            return(scriptRunner.RunScript(script, l, Context));
        }
示例#2
0
 public MacroProxy(MacroScriptRunner runner, Ledger ledger, AccountingDbContext context)
 {
     _runner  = runner;
     _ledger  = ledger;
     _context = context;
 }