Automated formatting: BOM removal, using sort order, final newlines, whitespace normalization across all projects. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
453 B
C#
17 lines
453 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Svrnty.CQRS.Abstractions;
|
|
|
|
public interface ICommandHandler<in TCommand>
|
|
where TCommand : class
|
|
{
|
|
Task HandleAsync(TCommand command, CancellationToken cancellationToken = default);
|
|
}
|
|
|
|
public interface ICommandHandler<in TCommand, TCommandResult>
|
|
where TCommand : class
|
|
{
|
|
Task<TCommandResult> HandleAsync(TCommand command, CancellationToken cancellationToken = default);
|
|
}
|