Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RemoveScriptResource.cs
1using System.Threading.Tasks;
2using Waher.Script;
6
8{
14 {
24 : base(Resource, Start, Length, Expression)
25 {
26 }
27
31 public override string FunctionName => nameof(RemoveScriptResource);
32
36 public override string[] DefaultArgumentNames => new string[] { "Resource" };
37
42 public override bool IsAsynchronous => true;
43
51 {
52 return this.EvaluateScalarAsync(Argument, Variables).Result;
53 }
54
61 public override async Task<IElement> EvaluateScalarAsync(string Argument, Variables Variables)
62 {
64 }
65 }
66}
Static class managing the runtime environment of the IoT Gateway.
Definition: Gateway.cs:126
static Task< bool > RemoveScriptResource(string ResourceName)
Removes a script resource from the web server hosted by the gateway.
Definition: Gateway.cs:5069
Removes a script resource added using the ScriptResource function. The function returns a Boolean val...
override IElement EvaluateScalar(string Argument, Variables Variables)
Evaluates the function on a scalar argument.
RemoveScriptResource(ScriptNode Resource, int Start, int Length, Expression Expression)
Removes a script resource added using the ScriptResource function. The function returns a Boolean val...
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override async Task< IElement > EvaluateScalarAsync(string Argument, Variables Variables)
Evaluates the function on a scalar argument.
Class managing a script expression.
Definition: Expression.cs:39
Base class for funcions of one scalar string variable.
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Boolean-valued number.
Definition: BooleanValue.cs:12
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:20