using Avalonia.Threading;

namespace ZB.MOM.WW.OtOpcUa.Client.UI.Services;

/// <summary>
///     Dispatches actions to the Avalonia UI thread.
/// </summary>
public sealed class AvaloniaUiDispatcher : IUiDispatcher
{
    /// <inheritdoc />
    public void Post(Action action)
    {
        Dispatcher.UIThread.Post(action);
    }
}