Class CacheableMiddleware
- Namespace
- Cuemon.AspNetCore.Http.Headers
- Assembly
- Cuemon.AspNetCore.dll
Provides a Cache-Control middleware implementation for ASP.NET Core.
public class CacheableMiddleware : ConfigurableMiddleware<CacheableOptions>, IConfigurable<CacheableOptions>
- Inheritance
-
CacheableMiddleware
- Implements
- Inherited Members
Constructors
CacheableMiddleware(RequestDelegate, IOptions<CacheableOptions>)
Initializes a new instance of the CacheableMiddleware class.
public CacheableMiddleware(RequestDelegate next, IOptions<CacheableOptions> setup)
Parameters
nextRequestDelegateThe delegate of the request pipeline to invoke.
setupIOptions<CacheableOptions>The CacheableOptions which need to be configured.
CacheableMiddleware(RequestDelegate, Action<CacheableOptions>)
Initializes a new instance of the CacheableMiddleware class.
public CacheableMiddleware(RequestDelegate next, Action<CacheableOptions> setup)
Parameters
nextRequestDelegateThe delegate of the request pipeline to invoke.
setupAction<CacheableOptions>The CacheableOptions which need to be configured.
Methods
InvokeAsync(HttpContext)
Executes the CacheableMiddleware.
public override Task InvokeAsync(HttpContext context)
Parameters
contextHttpContextThe context of the current request.