Class ControllerTypeMap

Helps to find controller which match the request context and controller name

Inheritance
System.Object
ControllerTypeMap
Implements
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.Web.Mvc
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[ServiceConfiguration(ServiceType = typeof(IControllerTypeMap), Lifecycle = ServiceInstanceScope.Singleton)]
public class ControllerTypeMap : IControllerTypeMap

Constructors

ControllerTypeMap()

Declaration
public ControllerTypeMap()

Methods

TryGetControllerType(RequestContext, out Type)

Tries to resolve the type for a certain controller name.

Declaration
public bool TryGetControllerType(RequestContext requestContext, out Type controllerType)
Parameters
Type Name Description
System.Web.Routing.RequestContext requestContext

The request context.

System.Type controllerType

The matching controller type.

Returns
Type Description
System.Boolean

True if a controller type was matched.

Implements

Extension Methods