AddHttpCacheableOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.Filters
- Assemblies
- Cuemon.Extensions.AspNetCore.Mvc.dll
AddHttpCacheableOptions(IMvcBuilder, Action<HttpCacheableOptions>)
Registers the specified setup to configure HttpCacheableOptions in the underlying service collection of builder.
public static IMvcBuilder AddHttpCacheableOptions(this IMvcBuilder builder, Action<HttpCacheableOptions> setup = null)
Parameters
builderIMvcBuilderThe IMvcBuilder to extend.
setupAction<HttpCacheableOptions>The HttpCacheableOptions which may be configured.
Returns
- IMvcBuilder
A reference to
builderso that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
buildercannot be null.- ArgumentException
setupfailed to configure an instance of HttpCacheableOptions in a valid state.