BililiveRecorder/BililiveRecorder.ToolBox/ICommandHandler.cs

14 lines
417 B
C#
Raw Normal View History

using System.Threading;
2021-04-14 23:46:24 +08:00
using System.Threading.Tasks;
namespace BililiveRecorder.ToolBox
{
2021-04-19 18:20:14 +08:00
public interface ICommandHandler<TRequest, TResponse>
where TRequest : ICommandRequest<TResponse>
where TResponse : IResponseData
2021-04-14 23:46:24 +08:00
{
string Name { get; }
Task<CommandResponse<TResponse>> Handle(TRequest request, CancellationToken cancellationToken, ProgressCallback? progress);
2021-04-14 23:46:24 +08:00
}
}