2025-03-15 01:39:43 +03:30

15 lines
345 B
C#

using MediatR;
namespace BuildingBlocks.Core.CQRS;
public interface ICommandHandler<in TCommand> : ICommandHandler<TCommand, Unit>
where TCommand : ICommand<Unit>
{
}
public interface ICommandHandler<in TCommand, TResponse> : IRequestHandler<TCommand, TResponse>
where TCommand : ICommand<TResponse>
where TResponse : notnull
{
}