山东雷驰
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
568 B

using MediatR;
using System.Threading;
using System.Threading.Tasks;
namespace Kean.Domain
{
/// <summary>
/// 表示命令处理程序
/// </summary>
/// <typeparam name="T">命令模型</typeparam>
internal interface ICommandHandler<T> : IRequestHandler<T, Unit> where T : class, ICommand
{
/// <summary>
/// 处理命令
/// </summary>
/// <param name="command">命令</param>
/// <param name="cancellationToken">取消标记</param>
new Task Handle(T command, CancellationToken cancellationToken);
}
}