Class ScriptRunner
Executes configuration scripts which are embedded in configuration
Inheritance
System.Object
ScriptRunner
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.dll
Syntax
public class ScriptRunner : IConfigurable
Fields
CONFIG_SCRIPT_RUNNER_PATH
Declaration
public const string CONFIG_SCRIPT_RUNNER_PATH = "/script-runner"
Field Value
Type |
Description |
System.String |
|
CONFIG_SCRIPT_RUNNER_SECTION
Declaration
public const string CONFIG_SCRIPT_RUNNER_SECTION = "script-runner"
Field Value
Type |
Description |
System.String |
|
CONFIG_TIMEOUT_ATTR
Declaration
public const string CONFIG_TIMEOUT_ATTR = "timeout-ms"
Field Value
Type |
Description |
System.String |
|
DEFAULT_KEYWORD_BLOCK
Declaration
public const string DEFAULT_KEYWORD_BLOCK = "_BLOCK"
Field Value
Type |
Description |
System.String |
|
DEFAULT_KEYWORD_CALL
Declaration
public const string DEFAULT_KEYWORD_CALL = "_CALL"
Field Value
Type |
Description |
System.String |
|
DEFAULT_KEYWORD_ELSE
Declaration
public const string DEFAULT_KEYWORD_ELSE = "_ELSE"
Field Value
Type |
Description |
System.String |
|
DEFAULT_KEYWORD_IF
Declaration
public const string DEFAULT_KEYWORD_IF = "_IF"
Field Value
Type |
Description |
System.String |
|
DEFAULT_KEYWORD_LOOP
Declaration
public const string DEFAULT_KEYWORD_LOOP = "_LOOP"
Field Value
Type |
Description |
System.String |
|
DEFAULT_KEYWORD_SET
Declaration
public const string DEFAULT_KEYWORD_SET = "_SET"
Field Value
Type |
Description |
System.String |
|
DEFAULT_SCRIPT_ONLY_ATTR
Declaration
public const string DEFAULT_SCRIPT_ONLY_ATTR = "script-only"
Field Value
Type |
Description |
System.String |
|
DEFAULT_TIMEOUT_MS
Declaration
public const int DEFAULT_TIMEOUT_MS = 250
Field Value
Type |
Description |
System.Int32 |
|
Properties
AttributeScriptOnly
Gets/sets attribute name that indicates that marked entity should not be brought over into script output target
Declaration
public string AttributeScriptOnly { get; set; }
Property Value
Type |
Description |
System.String |
|
KeywordBLOCK
Gets/sets BLOCK keyword - used for unconditional script evaluation block
Declaration
public string KeywordBLOCK { get; set; }
Property Value
Type |
Description |
System.String |
|
KeywordCALL
Gets/sets CALL keyword - used for sub-routine invocation
Declaration
public string KeywordCALL { get; set; }
Property Value
Type |
Description |
System.String |
|
KeywordELSE
Gets/sets ELSE keyword - used for IF-complementary conditional block
Declaration
public string KeywordELSE { get; set; }
Property Value
Type |
Description |
System.String |
|
KeywordIF
Gets/sets IF keyword - used for conditional block
Declaration
public string KeywordIF { get; set; }
Property Value
Type |
Description |
System.String |
|
KeywordLOOP
Gets/sets LOOP keyword - used for repetition block
Declaration
public string KeywordLOOP { get; set; }
Property Value
Type |
Description |
System.String |
|
KeywordSET
Gets/sets SET keyword - used for variable assignment statement
Declaration
public string KeywordSET { get; set; }
Property Value
Type |
Description |
System.String |
|
TimeoutMs
Gets/sets script execution timeout
Declaration
public int TimeoutMs { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
CloneAttributes(ConfigSectionNode, ConfigSectionNode, Boolean)
Declaration
protected virtual void CloneAttributes(ConfigSectionNode from, ConfigSectionNode to, bool evaluate = false)
Parameters
Declaration
public virtual void Configure(IConfigSectionNode node)
Parameters
DoBLOCK(Stopwatch, ConfigSectionNode, ConfigSectionNode)
Declaration
protected virtual void DoBLOCK(Stopwatch sw, ConfigSectionNode blockStatement, ConfigSectionNode target)
Parameters
DoCALL(Stopwatch, ConfigSectionNode, ConfigSectionNode)
Declaration
protected virtual void DoCALL(Stopwatch sw, ConfigSectionNode callStatement, ConfigSectionNode target)
Parameters
DoELSE(Stopwatch, ConfigSectionNode, ConfigSectionNode, ConfigSectionNode)
Declaration
protected virtual void DoELSE(Stopwatch sw, ConfigSectionNode elseStatement, ConfigSectionNode priorStatement, ConfigSectionNode target)
Parameters
DoIF(Stopwatch, ConfigSectionNode, ConfigSectionNode)
Declaration
protected virtual void DoIF(Stopwatch sw, ConfigSectionNode ifStatement, ConfigSectionNode target)
Parameters
DoLOOP(Stopwatch, ConfigSectionNode, ConfigSectionNode)
Declaration
protected virtual void DoLOOP(Stopwatch sw, ConfigSectionNode loopStatement, ConfigSectionNode target)
Parameters
DoNode(Stopwatch, ConfigSectionNode, ConfigSectionNode)
Declaration
protected virtual void DoNode(Stopwatch sw, ConfigSectionNode source, ConfigSectionNode target)
Parameters
DoSET(Stopwatch, ConfigSectionNode)
Declaration
protected virtual void DoSET(Stopwatch sw, ConfigSectionNode setStatement)
Parameters
EvaluateAnyExpression(ConfigSectionNode, String)
Declaration
protected virtual string EvaluateAnyExpression(ConfigSectionNode exprContainer, string expression)
Parameters
Returns
Type |
Description |
System.String |
|
EvaluateBooleanConditionExpression(ConfigSectionNode)
Declaration
protected virtual bool EvaluateBooleanConditionExpression(ConfigSectionNode exprContainer)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Execute(Configuration, Configuration)
Runs script on the configuration
Declaration
public virtual void Execute(Configuration source, Configuration target)
Parameters
InitStatement(ConfigSectionNode)
Declaration
protected virtual void InitStatement(ConfigSectionNode statement)
Parameters
Implements
Extension Methods