Class CachingViewEnginesWrapper
Encapsulates System.
Inheritance
Inherited Members
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class CachingViewEnginesWrapper
Constructors
CachingViewEnginesWrapper(ViewEngineCollection, IObjectInstanceCache)
Initializes a new instance of the Caching
Declaration
public CachingViewEnginesWrapper(ViewEngineCollection viewEngines, IObjectInstanceCache cache)
Parameters
Type | Name | Description |
---|---|---|
System. |
viewEngines | The view engines. |
IObject |
cache | The cache. |
Methods
FindInternal(HttpContextBase, Func<String>, Func<ViewEngineResult>)
The actual implementation. It delegates calls to the wrapped System.
Declaration
protected virtual ViewEngineResult FindInternal(HttpContextBase context, Func<string> cacheKeyResolver, Func<ViewEngineResult> viewResolver)
Parameters
Type | Name | Description |
---|---|---|
System. |
context | The context. |
System. |
cacheKeyResolver | The cache key resolver. |
System. |
viewResolver | The view resolver. |
Returns
Type | Description |
---|---|
System. |
FindPartialView(ControllerContext, String)
Finds the partial view with given name.
Declaration
public virtual ViewEngineResult FindPartialView(ControllerContext controllerContext, string partialViewName)
Parameters
Type | Name | Description |
---|---|---|
System. |
controllerContext | The controller context. |
System. |
partialViewName | Partial name of the view. |
Returns
Type | Description |
---|---|
System. |
FindView(ControllerContext, String, String)
Finds the view with given name.
Declaration
public virtual ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName)
Parameters
Type | Name | Description |
---|---|---|
System. |
controllerContext | The controller context. |
System. |
viewName | Name of the view. |
System. |
masterName | Name of the master. |
Returns
Type | Description |
---|---|
System. |