public CacheTagMiddleware(RequestDelegate next, CacheTags cacheTags) { this.next = next; this.cacheTags = cacheTags; }
/// <summary> /// Registers the <see cref="CacheTagMiddleware"/>. /// </summary> /// <param name="app">IApplicationBuilder instance.</param> /// <param name="cacheTags">A CacheTags object containing the cache tags to be added.</param> public static IApplicationBuilder UseCloudflareCacheTagMiddleware(this IApplicationBuilder app, CacheTags cacheTags) { return(app.UseMiddleware <CacheTagMiddleware>(cacheTags)); }