Class Firmware
- Namespace
- DuetControlServer.Codes.Pipelines
- Assembly
- DuetControlServer.dll
Dummy stage for codes ready to be sent to the firmware. This class is not used by the pipeline itself but indirectly from the SPI channel processor
public sealed class Firmware : PipelineBase
- Inheritance
-
Firmware
- Inherited Members
Constructors
Firmware(ChannelProcessor, CodeProcessor, LinkInterface, IHostApplicationLifetime, IOptions<Settings>)
Dummy stage for codes ready to be sent to the firmware. This class is not used by the pipeline itself but indirectly from the SPI channel processor
public Firmware(ChannelProcessor channelProcessor, CodeProcessor codeProcessor, LinkInterface linkInterface, IHostApplicationLifetime lifetime, IOptions<Settings> settings)
Parameters
channelProcessorChannelProcessorChannel processor
codeProcessorCodeProcessorCode processor
linkInterfaceLinkInterfaceLink interface
lifetimeIHostApplicationLifetimeApplication lifetime
settingsIOptions<Settings>Application settings
- See Also
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
fileCodeFilecancellationTokenCancellationToken
Returns
FlushAsync(bool, CancellationToken)
Wait for the pipeline stage to become idle
public override Task<bool> FlushAsync(bool flushAll, CancellationToken cancellationToken = default)
Parameters
flushAllboolFlush everything
cancellationTokenCancellationTokenOptional cancellation token
Returns
ProcessCodeAsync(Code)
Process an incoming code
public override Task ProcessCodeAsync(Code code)
Parameters
codeCodeCode to process
Returns
- Task
Asynchronous task