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

/// <summary>
///     Dispatcher that executes actions synchronously on the calling thread.
///     Used for unit testing where no UI thread is available.
/// </summary>
public sealed class SynchronousUiDispatcher : IUiDispatcher
{
    /// <summary>Executes the action synchronously on the calling thread.</summary>
    /// <param name="action">The action to execute.</param>
    public void Post(Action action)
    {
        action();
    }
}