BililiveRecorder/BililiveRecorder.ToolBox/ICommandHandler.cs

13 lines
339 B
C#
Raw Normal View History

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 : class
2021-04-14 23:46:24 +08:00
{
2021-04-19 18:20:14 +08:00
Task<CommandResponse<TResponse>> Handle(TRequest request);
2021-04-14 23:46:24 +08:00
void PrintResponse(TResponse response);
}
}