Removing UWP project.
This commit is contained in:
20
Wino.Core.UWP/WinAppDispatcher.cs
Normal file
20
Wino.Core.UWP/WinAppDispatcher.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using CommunityToolkit.WinUI;
|
||||
using Microsoft.UI.Dispatching;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
|
||||
namespace Wino.Core.WinUI
|
||||
{
|
||||
public class WinAppDispatcher : IDispatcher
|
||||
{
|
||||
private readonly DispatcherQueue _dispatcherQueue;
|
||||
|
||||
public WinAppDispatcher(DispatcherQueue dispatcherQueue)
|
||||
{
|
||||
_dispatcherQueue = dispatcherQueue;
|
||||
}
|
||||
|
||||
public Task ExecuteOnUIThread(Action action) => _dispatcherQueue.EnqueueAsync(() => { action(); });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user