Table of Contents

Class Observer

Namespace
DuetControlServer.Model
Assembly
DuetControlServer.dll

Partial class implementation of the observer for generic helpers

public class Observer : IHostedService
Inheritance
Observer
Implements
Inherited Members

Constructors

Observer(ObjectModel)

Main class for observing changes in the machine model

public Observer(ObjectModel model)

Parameters

model ObjectModel

Object model

Methods

StartAsync(CancellationToken)

Starts the observer service

public Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token

Returns

Task

StopAsync(CancellationToken)

Stops the observer service

public Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token

Returns

Task

Events

OnPropertyPathChanged

Event to call when an object model value has been changed

public event Observer.PropertyPathChanged? OnPropertyPathChanged

Event Type

Observer.PropertyPathChanged