Class ModulesViewLocationCache
Implements a view location cache per module
Inheritance
System.Object
ModulesViewLocationCache
Implements
System.Web.Mvc.IViewLocationCache
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web.Mvc
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
public class ModulesViewLocationCache : IViewLocationCache
Constructors
ModulesViewLocationCache(String)
Initializes a new instance of the ModulesViewLocationCache class.
Declaration
public ModulesViewLocationCache(string moduleName)
Parameters
Type | Name | Description |
---|---|---|
System.String | moduleName | Name of the module. |
Methods
GetViewLocation(HttpContextBase, String)
Gets the view location by using the specified HTTP context and the cache key.
Declaration
public string GetViewLocation(HttpContextBase httpContext, string key)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The HTTP context. |
System.String | key | The cache key. |
Returns
Type | Description |
---|---|
System.String | The view location. |
InsertViewLocation(HttpContextBase, String, String)
Inserts the specified view location into the cache by using the specified HTTP context and the cache key.
Declaration
public void InsertViewLocation(HttpContextBase httpContext, string key, string virtualPath)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | httpContext | The HTTP context. |
System.String | key | The cache key. |
System.String | virtualPath | The virtual path. |
Implements
System.Web.Mvc.IViewLocationCache