feat: 初始功能

This commit is contained in:
Shiqvlizi Name
2026-05-23 18:16:50 +08:00
parent a5bfd8792e
commit 9a51259e9e
63 changed files with 5377 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
namespace CloudPrint.Client.Infrastructure;
public sealed class WpfUiDispatcher : IUiDispatcher
{
public void Invoke(Action action)
{
ArgumentNullException.ThrowIfNull(action);
var dispatcher = System.Windows.Application.Current?.Dispatcher;
if (dispatcher is null || dispatcher.CheckAccess())
{
action();
return;
}
dispatcher.Invoke(action);
}
}