Show / Hide Table of Contents

Class TimerUpdateTrigger

Represents a generic update trigger.

Inheritance
object
AbstractBindable
AbstractUpdateTrigger
TimerUpdateTrigger
Implements
IBindable
INotifyPropertyChanged
IUpdateTrigger
IDisposable
Inherited Members
AbstractUpdateTrigger.Starting
AbstractUpdateTrigger.Update
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class TimerUpdateTrigger : AbstractUpdateTrigger, IBindable, INotifyPropertyChanged, IUpdateTrigger, IDisposable

Constructors

| Edit this page View Source

TimerUpdateTrigger(CustomUpdateData?, bool)

Initializes a new instance of the TimerUpdateTrigger class.

Declaration
public TimerUpdateTrigger(CustomUpdateData? customUpdateData, bool autostart = true)
Parameters
Type Name Description
CustomUpdateData customUpdateData

The update-data passed on each update triggered.

bool autostart

A value indicating if the trigger should automatically Start() right after construction.

| Edit this page View Source

TimerUpdateTrigger(bool)

Initializes a new instance of the TimerUpdateTrigger class.

Declaration
public TimerUpdateTrigger(bool autostart = true)
Parameters
Type Name Description
bool autostart

A value indicating if the trigger should automatically Start() right after construction.

Properties

| Edit this page View Source

LastUpdateTime

Gets the time it took the last update-loop cycle to run.

Declaration
public override double LastUpdateTime { get; protected set; }
Property Value
Type Description
double
Overrides
AbstractUpdateTrigger.LastUpdateTime
| Edit this page View Source

UpdateFrequency

Gets or sets the update-frequency in seconds. (Calculate by using '1.0 / updates per second')

Declaration
public double UpdateFrequency { get; set; }
Property Value
Type Description
double

Methods

| Edit this page View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public override void Dispose()
Overrides
AbstractUpdateTrigger.Dispose()
| Edit this page View Source

Start()

Starts the trigger if needed, causing it to performing updates.

Declaration
public override void Start()
Overrides
AbstractUpdateTrigger.Start()
| Edit this page View Source

Stop()

Stops the trigger if running, causing it to stop performing updates.

Declaration
public void Stop()

Implements

IBindable
INotifyPropertyChanged
IUpdateTrigger
IDisposable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX