Show / Hide Table of Contents

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 Source

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

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