Table of Contents

Class UpdateService

Namespace
DuetControlServer.Model
Assembly
DuetControlServer.dll

Service to keep the object model up-to-date with the firmware

public class UpdateService : BackgroundService, IHostedService, IDisposable
Inheritance
UpdateService
Implements
Inherited Members

Constructors

Constructor of this class

public UpdateService(FirmwareUpdater firmwareUpdater, LinkInterface linkInterface, ObjectModel model, ILogger<UpdateService> logger, IOptions<Settings> settings)

Parameters

firmwareUpdater FirmwareUpdater

Firmware updater

linkInterface LinkInterface

Link interface

model ObjectModel

Object model

logger ILogger<UpdateService>

Logger

settings IOptions<Settings>

Settings

Methods

ExecuteAsync(CancellationToken)

Process status updates in the background

protected override Task ExecuteAsync(CancellationToken stoppingToken)

Parameters

stoppingToken CancellationToken

Returns

Task

Asynchronous task

StopAsync(CancellationToken)

Stop the update service

public override Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token

Returns

Task

Asynchronous task