Adds Decorator, wip
This commit is contained in:
parent
a86a2d7ade
commit
49f9b99ee1
9 changed files with 112 additions and 45 deletions
15
PlanTempus.Components/ICommandHandler.cs
Normal file
15
PlanTempus.Components/ICommandHandler.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
namespace PlanTempus.Components;
|
||||
|
||||
public interface ICommandHandler
|
||||
{
|
||||
Task<TCommandResult> Handle<TCommand, TCommandResult>(TCommand command);
|
||||
}
|
||||
|
||||
public interface ICommandHandler<in T, TResult>
|
||||
{
|
||||
Task<TResult> Handle(T input);
|
||||
}
|
||||
|
||||
public interface ICommandHandlerDecorator
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue