Class PermanentContentLinkMapper
Handles conversion between permanent links and classic links for content links.
Inheritance
System.Object
PermanentContentLinkMapper
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
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
[ServiceConfiguration(typeof(IContentResolverRegistry), Lifecycle = ServiceInstanceScope.Singleton)]
public class PermanentContentLinkMapper : IContentResolverRegistry
Constructors
PermanentContentLinkMapper()
Declaration
public PermanentContentLinkMapper()
Properties
ContentResolvers
Returns all registered resolvers
Declaration
public IEnumerable<IContentResolver> ContentResolvers { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IContentResolver> |
Instance
The global permanent content link mapper instance. This is not intended to be set by external code.
Declaration
public static PermanentContentLinkMapper Instance { get; set; }
Property Value
Type | Description |
---|---|
PermanentContentLinkMapper |
Methods
AddResolver(IContentResolver)
Adds a content resolver to be quieried when resolving content links.
Declaration
public void AddResolver(IContentResolver contentResolver)
Parameters
Type | Name | Description |
---|---|---|
IContentResolver | contentResolver | The page resolver. |
ClearResolvers()
Clears the list of content resolvers.
Declaration
public void ClearResolvers()
InitializeResolvers(IEnumerable)
Initializes a list of resolvers.
Declaration
[Obsolete("Call ClearResolvers followed by AddResolver instead")]
public void InitializeResolvers(IEnumerable resolvers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | resolvers | The resolvers. |
Remarks
Will basically do the same as ClearResolvers followed by AddResolvers for all resolvers in the list.
RemoveResolver(IContentResolver)
Removes a previously registered resolver.
Declaration
public void RemoveResolver(IContentResolver contentResolver)
Parameters
Type | Name | Description |
---|---|---|
IContentResolver | contentResolver | The resolver to remove. |