Class LanguageSegmentMatcher
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. This interface supports the EPiServer infrastructure and is not intended to be used directly from your code.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Segments.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(ILanguageSegmentMatcher))]
public class LanguageSegmentMatcher : ILanguageSegmentMatcher
Constructors
LanguageSegmentMatcher(ILanguageBranchRepository, HostLanguageResolver)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the LanguageSegmentMatcher class.
Declaration
public LanguageSegmentMatcher(ILanguageBranchRepository languageBranchRepository, HostLanguageResolver hostLanguageResolver)
Parameters
Type | Name | Description |
---|---|---|
ILanguageBranchRepository | languageBranchRepository | The language branch repository. |
HostLanguageResolver | hostLanguageResolver | The host language resolver. |
Methods
TryGetLanguageId(String, out String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual bool TryGetLanguageId(string urlSegment, out string languageId)
Parameters
Type | Name | Description |
---|---|---|
System.String | urlSegment | The url segment to check |
System.String | languageId | The id of the langauge branch if it exists, otherwise |
Returns
Type | Description |
---|---|
System.Boolean | True if the language is enabled |
TryGetLanguageUrlSegment(String, out String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Declaration
public virtual bool TryGetLanguageUrlSegment(string languageId, out string urlSegment)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageId | The language id to check |
System.String | urlSegment | The url segment (with fallback to language ID) of the langauge branch if it exists, otherwise |
Returns
Type | Description |
---|---|
System.Boolean | True if the language is enabled |