using Avalonia.Threading; namespace ZB.MOM.WW.OtOpcUa.Client.UI.Services; /// /// Dispatches actions to the Avalonia UI thread. /// public sealed class AvaloniaUiDispatcher : IUiDispatcher { /// Posts an action to the Avalonia UI thread for execution. /// The action to execute on the UI thread. public void Post(Action action) { Dispatcher.UIThread.Post(action); } }