public ImagesCacheMiddleware(RequestDelegate next, IOptions <ImagesCacheOptions> options) { _options = options.Value; _next = next; }
public static IApplicationBuilder UseImagesCache(this IApplicationBuilder app, ImagesCacheOptions options) { return(app.UseMiddleware <ImagesCacheMiddleware>(Options.Create(options))); }