Class Executed
Pipeline element for dealing with codes that have been resolved or cancelled. This is the only pipeline stage that cannot maintain more than one stack level
Inherited Members
Namespace: DuetControlServer.Codes.Pipelines
Assembly: DuetControlServer.dll
Syntax
public class Executed : PipelineBase
Constructors
Executed(ChannelProcessor)
Constructor of this class
Declaration
public Executed(ChannelProcessor processor)
Parameters
Type | Name | Description |
---|---|---|
ChannelProcessor | processor | Channel processor |
Methods
FlushAsync(Code, bool, bool)
Wait for the pipeline stage to become idle
Declaration
public override Task<bool> FlushAsync(Code code, bool evaluateExpressions = true, bool evaluateAll = true)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code waiting for the flush |
bool | evaluateExpressions | Evaluate all expressions when pending codes have been flushed |
bool | evaluateAll | Evaluate the expressions or only SBC fields if evaluateExpressions is set to true |
Returns
Type | Description |
---|---|
Task<bool> | Whether the codes have been flushed successfully |
Overrides
FlushAsync(CodeFile)
Wait for the pipeline stage to become idle
Declaration
public override Task<bool> FlushAsync(CodeFile file)
Parameters
Type | Name | Description |
---|---|---|
CodeFile | file | Code file |
Returns
Type | Description |
---|---|
Task<bool> | Whether the codes have been flushed successfully |
Overrides
ProcessCodeAsync(Code)
Process an incoming code
Declaration
public override Task ProcessCodeAsync(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code to process |
Returns
Type | Description |
---|---|
Task | Asynchronous task |
Overrides
WriteCode(Code)
Execute a given code on this pipeline stage
Declaration
public override void WriteCode(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code to enqueue |
Overrides
WriteCodeAsync(Code)
Execute a given code on this pipeline stage
Declaration
public override ValueTask WriteCodeAsync(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code | Code to enqueue |
Returns
Type | Description |
---|---|
ValueTask | Asynchronous task |