init backend
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace AipsCore.Application.Abstract.Command;
|
||||
|
||||
public interface ICommandHandler<in TCommand>
|
||||
where TCommand : ICommand
|
||||
{
|
||||
Task Handle(TCommand command, CancellationToken cancellationToken = default);
|
||||
}
|
||||
|
||||
public interface ICommandHandler<in TCommand, TResult>
|
||||
where TCommand : ICommand<TResult>
|
||||
{
|
||||
Task<TResult> Handle(TCommand command, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user