mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
14 lines
417 B
C#
14 lines
417 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BililiveRecorder.ToolBox
|
|
{
|
|
public interface ICommandHandler<TRequest, TResponse>
|
|
where TRequest : ICommandRequest<TResponse>
|
|
where TResponse : IResponseData
|
|
{
|
|
string Name { get; }
|
|
Task<CommandResponse<TResponse>> Handle(TRequest request, CancellationToken cancellationToken, ProgressCallback? progress);
|
|
}
|
|
}
|