Esempio n. 1
0
        public ExecutionResult Execute(ScriptContext context)
        {
            string message = context.Parameters["message"];

            Console.WriteLine(message);

            return new ExecutionResult() { Output = message };
        }
Esempio n. 2
0
        public static ExecutionResult Execute(string script, Dictionary<string, string> properties)
        {
            var runnerScript = Catalog.GetScript(script);
            var context = new ScriptContext()
            {
                Name = script,
                Parameters = properties,
                Type = runnerScript.Type
            };

            return Execute(context);
        }
Esempio n. 3
0
        public ExecutionResult Execute(ScriptContext context)
        {
            var scriptDef = RunnerCatalog.GetScript(context.Name, context.Type);

            if (scriptDef != null)
            {
                IScript script = scriptDef.Reference as IScript;

                if (script != null) return script.Execute(context);
            }

            return null;
        }
Esempio n. 4
0
 public ExecutionResult Execute(ScriptContext context)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public static ExecutionResult Execute(ScriptContext context)
 {
     return Catalog[context.Type].Execute(context);
 }