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