mirror of
https://github.com/sebastian-heinz/mhf-server.git
synced 2025-04-03 13:28:30 +08:00
17 lines
432 B
C#
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);
|
|
}
|
|
}
|