mhf-server/Mhf.Server/Common/Middleware/Middleware.cs
2019-11-24 19:43:35 +08:00

17 lines
432 B
C#

using Arrowgene.Services.Logging;
namespace Mhf.Server.Common.Middleware
{
public abstract class Middleware<T, TReq, TRes> : IMiddleware<T, TReq, TRes>
{
protected Middleware()
{
Logger = LogProvider.Logger(this);
}
protected ILogger Logger { get; }
public abstract void Handle(T client, TReq message, TRes response, MiddlewareDelegate<T, TReq, TRes> next);
}
}