Class VaryByCookieLevel
- Namespace
- Kentico.PageBuilder.Web.Mvc
- Assembly
- Kentico.Content.Web.Mvc.dll
Represents a vary by option for widget output cache which is based on current request's cookie level.
public class VaryByCookieLevel : ICacheVaryByOption
- Inheritance
-
objectVaryByCookieLevel
- Implements
- Extension Methods
Constructors
VaryByCookieLevel(ICurrentCookieLevelProvider)
Initializes a new instance of the VaryByCookieLevel class.
public VaryByCookieLevel(ICurrentCookieLevelProvider currentCookieLevelProvider)
Parameters
currentCookieLevelProviderICurrentCookieLevelProviderProvider of current cookie level.
Methods
GetKey()
Gets key characterizing cookie level which applies to the current request.
public string GetKey()
Returns
- string
Returns key identifying the cache variant.