Show / Hide Table of Contents

Interface IScriptingBehavior

Singleton application service contract responsible for adding behavior to script execution for a specified language.

Namespace: Kephas.Scripting
Assembly: Kephas.Scripting.dll
Syntax
[SingletonAppServiceContract(AllowMultiple = true, MetadataAttributes = new Type[]{typeof(LanguageAttribute)})]
public interface IScriptingBehavior

Methods

| Improve this Doc View Source

AfterExecuteAsync(IScriptingContext, CancellationToken)

Interception called after invoking the language service to execute the script.

Declaration
Task AfterExecuteAsync(IScriptingContext executionContext, CancellationToken token)
Parameters
Type Name Description
IScriptingContext executionContext

Information describing the execution.

System.Threading.CancellationToken token

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

A task.

Remarks

The execution data contains the execution result. The interceptor may change the result or even replace it with another one.

| Improve this Doc View Source

BeforeExecuteAsync(IScriptingContext, CancellationToken)

Interception called before invoking the language service to execute the script.

Declaration
Task BeforeExecuteAsync(IScriptingContext executionContext, CancellationToken token)
Parameters
Type Name Description
IScriptingContext executionContext

Information describing the execution.

System.Threading.CancellationToken token

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

A task.

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