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
modelObjectModelObject model
Methods
StartAsync(CancellationToken)
Starts the observer service
public Task StartAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token
Returns
StopAsync(CancellationToken)
Stops the observer service
public Task StopAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token
Returns
Events
OnPropertyPathChanged
Event to call when an object model value has been changed
public event Observer.PropertyPathChanged? OnPropertyPathChanged