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

            Console.WriteLine(message);

            return new ExecutionResult() { Output = message };
        }
Exemplo 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);
        }
Exemplo 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;
        }
Exemplo n.º 4
0
 public ExecutionResult Execute(ScriptContext context)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public static ExecutionResult Execute(ScriptContext context)
 {
     return Catalog[context.Type].Execute(context);
 }