Class FirmwareUpdater
- Namespace
- DuetControlServer.Utility
- Assembly
- DuetControlServer.dll
Firmware updater for Duet boards
public class FirmwareUpdater
- Inheritance
-
FirmwareUpdater
- Inherited Members
Constructors
FirmwareUpdater(CodeFactory, FilePathResolver, ObjectModel, IHostApplicationLifetime, ILogger<FirmwareUpdater>, IOptions<Settings>)
Firmware updater for Duet boards
public FirmwareUpdater(CodeFactory codeFactory, FilePathResolver filePath, ObjectModel model, IHostApplicationLifetime lifetime, ILogger<FirmwareUpdater> logger, IOptions<Settings> settings)
Parameters
codeFactoryCodeFactoryCode factory
filePathFilePathResolverFile path resolver
modelObjectModelObject model
lifetimeIHostApplicationLifetimeHost application lifetime
loggerILogger<FirmwareUpdater>settingsIOptions<Settings>Settings
Methods
TryRemoteFirmwareUpdateAsync(CancellationToken)
Try to update the firmware using a remote DCS instance
public Task<bool> TryRemoteFirmwareUpdateAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token
Returns
UpdateFirmwareAsync(CancellationToken)
Update the firmware from this instance
public Task UpdateFirmwareAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token
Returns
- Task
Asynchronous task