mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 06:46:30 +00:00
24 lines
408 B
C#
24 lines
408 B
C#
using Azaion.Common.Services;
|
|
|
|
namespace Azaion.Test;
|
|
|
|
public class SynchronousUICommandDispatcher : IUICommandDispatcher
|
|
{
|
|
public Task ExecuteAsync(Action action)
|
|
{
|
|
action();
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task<T> ExecuteAsync<T>(Func<T> func)
|
|
{
|
|
return Task.FromResult(func());
|
|
}
|
|
|
|
public void Execute(Action action)
|
|
{
|
|
action();
|
|
}
|
|
}
|
|
|