diff --git a/Patterns/CommandHandler/Contracts.cs b/Patterns/CommandHandler/Contracts.cs index 96bc693..ce26431 100644 --- a/Patterns/CommandHandler/Contracts.cs +++ b/Patterns/CommandHandler/Contracts.cs @@ -20,6 +20,12 @@ public interface ICommand { } public interface ICommandHandler where TCommand : ICommand { + /// + /// Handles the command request + /// + /// + /// + /// Task HandleAsync(TCommand command, CancellationToken ct = default); } @@ -31,5 +37,11 @@ public interface ICommandHandler public interface ICommandHandler where TCommand : ICommand { + /// + /// Handles the command request and returns a result. + /// + /// + /// + /// Task HandleAsync(TCommand command, CancellationToken ct = default); } \ No newline at end of file