2022-06-17 01:44:05 +04:30

15 lines
348 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
{
}