mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 20:17:03 +00:00
Added Async fire to Feedbacks; fixed mock display to use async feedback
This commit is contained in:
parent
0fb946c7d5
commit
02cfc46f90
6 changed files with 78 additions and 60 deletions
|
|
@ -28,8 +28,19 @@ namespace PepperDash.Essentials.Core
|
|||
Cue = cue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fires an update synchronously
|
||||
/// </summary>
|
||||
public abstract void FireUpdate();
|
||||
|
||||
/// <summary>
|
||||
/// Fires the update asynchronously within a CrestronInvoke
|
||||
/// </summary>
|
||||
public void InvokeFireUpdate()
|
||||
{
|
||||
CrestronInvoke.BeginInvoke(o => FireUpdate());
|
||||
}
|
||||
|
||||
protected void OnOutputChange()
|
||||
{
|
||||
if (OutputChange != null) OutputChange(this, EventArgs.Empty);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue