public DsfScriptingActivity() : base("Script") { Script = string.Empty; Result = string.Empty; EscapeScript = true; IncludeFile = ""; _sources = new StringScriptSources(); }
public IScriptingContext CreateEngine(enScriptType scriptType, IStringScriptSources sources) { switch (scriptType) { case enScriptType.JavaScript: return(new JavaScriptContext(sources)); case enScriptType.Python: return(new Dev2PythonContext(sources)); case enScriptType.Ruby: return(new RubyContext(sources)); default: throw new Exception(ErrorResource.InvalidScriptingContext); } }
public JavaScriptContext(IStringScriptSources sources) { _jsContext = new ScriptEngine(); _scriptSources = sources; AddScriptSourcesToContext(); }
/// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary> public Dev2PythonContext(IStringScriptSources sources) { _sources = sources; }
public RubyContext(IStringScriptSources sources) { _sources = sources; }