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