CacheableMiddleware Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Http.Headers
- Assemblies
- Cuemon.AspNetCore.dll
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.