mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-21 00:38:44 +08:00
11 lines
367 B
C#
11 lines
367 B
C#
using Avalonia.Threading;
|
|
|
|
namespace System.Application.Services.Implementation
|
|
{
|
|
internal sealed class MainThreadPlatformServiceImpl : IMainThreadPlatformService
|
|
{
|
|
public bool PlatformIsMainThread => Dispatcher.UIThread.CheckAccess();
|
|
|
|
public void PlatformBeginInvokeOnMainThread(Action action) => Dispatcher.UIThread.Post(action);
|
|
}
|
|
} |