Interface IScriptProcessor
Singleton application service for executing scripts.
Namespace: Kephas.Scripting
Assembly: Kephas.Scripting.dll
Syntax
[SingletonAppServiceContract]
public interface IScriptProcessor
Methods
| Improve this Doc View SourceExecuteAsync(IScript, IExpando, IContext, CancellationToken)
Executes the provided script asynchronously.
Declaration
Task<object> ExecuteAsync(IScript script, IExpando args = null, IContext executionContext = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IScript | script | The script to be interpreted/executed. |
IExpando | args | Optional. The execution arguments. |
IContext | executionContext | Optional. The execution context. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | A promise of the execution result. |