Commit c88a286c authored by hasan khaddour's avatar hasan khaddour

Add CQRS Messaging.

parent 23fce07b
using MediatR;
namespace PSManagement.SharedKernel.CQRS.Command
{
public interface ICommand<out TResponse> : IRequest<TResponse>
{
}
}
using MediatR;
namespace PSManagement.SharedKernel.CQRS.Command
{
public interface ICommandHandler<in TCommand, TResponse> : IRequestHandler<TCommand, TResponse>
where TCommand : ICommand<TResponse>
{
}
}
using MediatR;
namespace PSManagement.SharedKernel.CQRS.Query
{
public interface IQuery<out TResponse> : IRequest<TResponse>
{
}
}
using MediatR;
namespace PSManagement.SharedKernel.CQRS.Query
{
public interface IQueryHandler<in TQuery, TResponse> : IRequestHandler<TQuery, TResponse>
where TQuery : IQuery<TResponse>
{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment