Class Executed
- Namespace
- DuetControlServer.Codes.Pipelines
- Assembly
- DuetControlServer.dll
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
public sealed class Executed : PipelineBase
- Inheritance
-
Executed
- Inherited Members
Constructors
Executed(ChannelProcessor, CodeProcessor, EventLogger, LinkInterface, ObjectModel, ICodeHandler, ICodeHandler, ICodeHandler, IHostApplicationLifetime, IOptions<Settings>)
Constructor of this class
public Executed(ChannelProcessor channelProcessor, CodeProcessor codeProcessor, EventLogger eventLogger, LinkInterface linkInterface, ObjectModel model, ICodeHandler gCodes, ICodeHandler mCodes, ICodeHandler tCodes, IHostApplicationLifetime lifetime, IOptions<Settings> settings)
Parameters
channelProcessorChannelProcessorChannel processor
codeProcessorCodeProcessorCode processor
eventLoggerEventLoggerEvent logger
linkInterfaceLinkInterfacemodelObjectModelObject model
gCodesICodeHandlerG-code handler
mCodesICodeHandlerM-code handler
tCodesICodeHandlerT-code handler
lifetimeIHostApplicationLifetimeApplication lifetime
settingsIOptions<Settings>Application settings
Methods
FlushAsync(Code, CancellationToken)
Wait for the pipeline stage to become idle
public override Task<bool> FlushAsync(Code code, CancellationToken cancellationToken = default)
Parameters
codeCodeCode waiting for the flush
cancellationTokenCancellationTokenOptional cancellation token
Returns
FlushAsync(CodeFile, CancellationToken)
Wait for the pipeline stage to become idle
public override Task<bool> FlushAsync(CodeFile file, CancellationToken cancellationToken = default)
Parameters
fileCodeFileCode file
cancellationTokenCancellationTokenOptional cancellation token
Returns
ProcessCodeAsync(Code)
Process an incoming code
public override Task ProcessCodeAsync(Code code)
Parameters
codeCodeCode to process
Returns
- Task
Asynchronous task
WriteCode(Code)
Execute a given code on this pipeline stage
public override void WriteCode(Code code)
Parameters
codeCodeCode to enqueue
WriteCodeAsync(Code)
Execute a given code on this pipeline stage
public override ValueTask WriteCodeAsync(Code code)
Parameters
codeCodeCode to enqueue
Returns
- ValueTask
Asynchronous task