Class AbstractUpdateTrigger
Represents a generic update trigger.
Inheritance
AbstractUpdateTrigger
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public abstract class AbstractUpdateTrigger : AbstractBindable, IBindable, INotifyPropertyChanged, IUpdateTrigger, IDisposable
Properties
| Edit this page View SourceLastUpdateTime
Gets the time spent for the last update.
Declaration
public abstract double LastUpdateTime { get; protected set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public abstract void Dispose()
OnStartup(CustomUpdateData?)
Invokes the Starting-event.
Declaration
protected virtual void OnStartup(CustomUpdateData? updateData = null)
Parameters
Type | Name | Description |
---|---|---|
CustomUpdateData | updateData | Optional custom-data passed to the subscribers of the Starting.event. |
OnUpdate(CustomUpdateData?)
Invokes the Update-event.
Declaration
protected virtual void OnUpdate(CustomUpdateData? updateData = null)
Parameters
Type | Name | Description |
---|---|---|
CustomUpdateData | updateData | Optional custom-data passed to the subscribers of the Update.event. |
Start()
Starts the update trigger.
Declaration
public abstract void Start()
Events
| Edit this page View SourceStarting
Occurs when the trigger is starting up.
Declaration
public event EventHandler<CustomUpdateData>? Starting
Event Type
Type | Description |
---|---|
EventHandler<CustomUpdateData> |
Update
Occurs when the trigger wants to cause an update.
Declaration
public event EventHandler<CustomUpdateData>? Update
Event Type
Type | Description |
---|---|
EventHandler<CustomUpdateData> |