Class SimpleAddress
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Helps converting simple addresses to internal addresses.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(IncludeServiceAccessor = false)]
[ServiceConfiguration(typeof(ISimpleAddressResolver))]
public class SimpleAddress : ISimpleAddressResolver
Constructors
SimpleAddress(IContentRepository, ServiceAccessor<IPageQuickSearch>, ISiteDefinitionResolver, ISiteDefinitionRepository, IVirtualPathResolver)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the SimpleAddress class.
Declaration
public SimpleAddress(IContentRepository contentRepository, ServiceAccessor<IPageQuickSearch> pageQuickSearch, ISiteDefinitionResolver siteDefinitionResolver, ISiteDefinitionRepository siteDefinitionRepository, IVirtualPathResolver virtualPathResolver)
Parameters
Type | Name | Description |
---|---|---|
IContentRepository | contentRepository | |
ServiceAccessor<IPageQuickSearch> | pageQuickSearch | |
ISiteDefinitionResolver | siteDefinitionResolver | |
ISiteDefinitionRepository | siteDefinitionRepository | |
IVirtualPathResolver | virtualPathResolver |
Methods
Resolve(UrlBuilder, SimpleAddressResolveContext)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public SimpleAddressResolveResult Resolve(UrlBuilder url, SimpleAddressResolveContext simpleAddressContext)
Parameters
Type | Name | Description |
---|---|---|
UrlBuilder | url | The url to resolve |
SimpleAddressResolveContext | simpleAddressContext | The current context |
Returns
Type | Description |
---|---|
SimpleAddressResolveResult | A resolved result if url could be resolved as a simple address for a content instance otherwise null |
SimpleAddressToInternal(UrlBuilder)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Converts an url from simple address to internal and return an object reference if the convertions was successful.
Declaration
public static object SimpleAddressToInternal(UrlBuilder url)
Parameters
Type | Name | Description |
---|---|---|
UrlBuilder | url | The url to change. |
Returns
Type | Description |
---|---|
System.Object | Null if the url didn't match a simple address otherwise a page reference to the page. |
SimpleAddressToInternal(UrlBuilder, ref Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Converts an url from simple address to internal.
Declaration
public static bool SimpleAddressToInternal(UrlBuilder url, ref object internalObject)
Parameters
Type | Name | Description |
---|---|---|
UrlBuilder | url | The simple url to convert. |
System.Object | internalObject | The object reference to pass back. |
Returns
Type | Description |
---|---|
System.Boolean | True if the address was converted. |
TryResolveAsSimpleAddress(UrlBuilder, SimpleAddressResolveContext, out Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Tries to resolve url as a simple address.
Declaration
public virtual bool TryResolveAsSimpleAddress(UrlBuilder url, SimpleAddressResolveContext context, out object internalObject)
Parameters
Type | Name | Description |
---|---|---|
UrlBuilder | url | The URL. |
SimpleAddressResolveContext | context | The segment context. |
System.Object | internalObject | The internal object. |
Returns
Type | Description |
---|---|
System.Boolean | true if url match a simple adress else false |