2025-03-12 00:13:53 +01:00
|
|
|
|
using PlanTempus.Core.CommandQueries;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PlanTempus.Components;
|
2025-03-11 00:28:06 +01:00
|
|
|
|
|
|
|
|
|
|
public interface ICommandHandler
|
|
|
|
|
|
{
|
2025-03-12 00:13:53 +01:00
|
|
|
|
Task<CommandResponse> Handle<TCommand>(TCommand command) where TCommand : ICommand;
|
2025-03-11 00:28:06 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-03-12 00:13:53 +01:00
|
|
|
|
public interface ICommandHandler<TCommand> where TCommand : ICommand
|
2025-03-11 00:28:06 +01:00
|
|
|
|
{
|
2025-03-12 00:13:53 +01:00
|
|
|
|
Task<CommandResponse> Handle(TCommand command);
|
2025-03-11 00:28:06 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public interface ICommandHandlerDecorator
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|