Class BlockStatusTimer
Refreshes all block statuses on the UI thread every 250 ms.
Inheritance
BlockStatusTimer
Assembly: MOSAIC.dll
Syntax
internal sealed class BlockStatusTimer
Constructors
BlockStatusTimer()
Declaration
private BlockStatusTimer()
Fields
_callbacks
Declaration
private Action[] _callbacks
Field Value
_sync
Declaration
private readonly object _sync
Field Value
_timer
Declaration
private readonly DispatcherTimer _timer
Field Value
| Type |
Description |
| DispatcherTimer |
|
Properties
Instance
Declaration
internal static BlockStatusTimer Instance { get; }
Property Value
Methods
OnTick(object?, EventArgs)
Declaration
private void OnTick(object? sender, EventArgs e)
Parameters
Subscribe(Action)
Declaration
internal void Subscribe(Action callback)
Parameters
| Type |
Name |
Description |
| Action |
callback |
|
Unsubscribe(Action)
Declaration
internal void Unsubscribe(Action callback)
Parameters
| Type |
Name |
Description |
| Action |
callback |
|