mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-12 11:32:10 +08:00
15 lines
345 B
C#
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
|
|
{
|
|
}
|