Class WhileLoop
Inherited Members
Namespace: SociallyDistant.Core.Core.Scripting.Instructions
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class WhileLoop : ShellInstructionConstructors
WhileLoop(ShellInstruction, IReadOnlyCollection<ShellInstruction>)
Declaration
public WhileLoop(ShellInstruction condition, IReadOnlyCollection<ShellInstruction> body)Parameters
| Type | Name | Description | 
|---|---|---|
| ShellInstruction | condition | |
| IReadOnlyCollection<ShellInstruction> | body | 
Methods
RunAsync(IConsoleDriver, IScriptExecutionContext)
Declaration
public override Task<int> RunAsync(IConsoleDriver console, IScriptExecutionContext context)Parameters
| Type | Name | Description | 
|---|---|---|
| IConsoleDriver | console | |
| IScriptExecutionContext | context | 
Returns
| Type | Description | 
|---|---|
| Task<int> |