public ServerMiddleware(RequestDelegate next, PathString path, IAdServerHandler handler) { _next = next; _path = path; _handler = handler; }
public static IApplicationBuilder AddAdServerCache(this IApplicationBuilder app, PathString server_path, IAdServerHandler handler) { return(app.UseMiddleware <ServerMiddleware>(server_path, handler)); }