Table of Contents

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 RequestDelegate

The 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 RequestDelegate

The 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 HttpContext

The context of the current request.

Returns

Task

A Task that represents the execution of this middleware.