dispatcher

This commit is contained in:
2026-02-05 19:21:25 +01:00
parent 01f25fb093
commit 9c75216bea
3 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using AipsCore.Application.Abstract.Command;
using AipsCore.Application.Abstract.Query;
namespace AipsCore.Application.Abstract;
public interface IDispatcher
{
Task Execute(ICommand command, CancellationToken cancellationToken = default);
Task<TResult> Execute<TResult>(ICommand<TResult> command, CancellationToken cancellationToken = default);
Task<TResult> Execute<TResult>(IQuery<TResult> query, CancellationToken cancellationToken = default);
}