Show / Hide Table of Contents

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 Source

ExecuteAsync(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.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX