BililiveRecorder/BililiveRecorder.ToolBox/ICommandHandler.cs
2021-04-19 18:20:14 +08:00

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);
}
}