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
next
RequestDelegateThe delegate of the request pipeline to invoke.
setup
IOptions<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
next
RequestDelegateThe delegate of the request pipeline to invoke.
setup
Action<CacheableOptions>The CacheableOptions which need to be configured.
Methods
InvokeAsync(HttpContext)
Executes the CacheableMiddleware.
public override async Task InvokeAsync(HttpContext context)
Parameters
context
HttpContextThe context of the current request.