mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
13 lines
339 B
C#
13 lines
339 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace BililiveRecorder.ToolBox
|
|
{
|
|
public interface ICommandHandler<TRequest, TResponse>
|
|
where TRequest : ICommandRequest<TResponse>
|
|
where TResponse : class
|
|
{
|
|
Task<CommandResponse<TResponse>> Handle(TRequest request);
|
|
void PrintResponse(TResponse response);
|
|
}
|
|
}
|