Interface ILanguageService
A shared application service contract responsible for interpreting/executing scripts for a specified language.
Namespace: Kephas.Scripting
Assembly: Kephas.Scripting.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true, MetadataAttributes = new Type[]{typeof(LanguageAttribute)})]
public interface ILanguageService
Methods
| Improve this Doc View SourceExecuteAsync(IScript, IScriptGlobals, IExpando, IContext, CancellationToken)
Executes the script asynchronously.
Declaration
Task<object> ExecuteAsync(IScript script, IScriptGlobals scriptGlobals = null, IExpando args = null, IContext executionContext = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IScript | script | The script to be interpreted/executed. |
IScriptGlobals | scriptGlobals | Optional. The script globals. |
IExpando | args | Optional. The 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. |