Class ScriptFunction
Implements
Inherited Members
Namespace: SociallyDistant.Core.Core.Scripting.Parsing
Assembly: SociallyDistant.Framework.dll
Syntax
public class ScriptFunction : IScriptFunction
Constructors
ScriptFunction(ShellInstruction)
Declaration
public ScriptFunction(ShellInstruction body)
Parameters
| Type | Name | Description |
|---|---|---|
| ShellInstruction | body |
Methods
ExecuteAsync(string, string[], IConsoleDriver, IScriptExecutionContext)
Declaration
public Task<int> ExecuteAsync(string name, string[] args, IConsoleDriver console, IScriptExecutionContext callSite)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| string[] | args | |
| IConsoleDriver | console | |
| IScriptExecutionContext | callSite |
Returns
| Type | Description |
|---|---|
| Task<int> |