NamespaceSystemLibrary.Common.Episerver
Base Cms functions to use anywhere within your application
- No more injecting things that you always need
- No more fiddling around with where and how do I get the ContentRepository? ServiceLocator? ... do it once, in a Cms classBaseCms
public abstract class BaseCms
Inheritance
System.Object
BaseCms
Properties
Property Value
Type | Description |
---|---|
EPiServer.Core.IContentModelUsage |
Property Value
Type | Description |
---|---|
EPiServer.IContentRepository |
Property Value
Type | Description |
---|---|
EPiServer.DataAbstraction.IContentTypeRepository |
Property Value
Type | Description |
---|---|
EPiServer.Core.IContentVersionRepository |
Property Value
Type | Description |
---|---|
System.Boolean |
Property Value
Type | Description |
---|---|
System.Boolean |
Property Value
Type | Description |
---|---|
EPiServer.DataAbstraction.ILanguageBranchRepository |
Remarks
Returns Primary Host if found
Fallback to first Undefined Type Host, that is not wildcard and contains a dot (.)
Fallback again to first Undefined Type Host, that is not wildcard, for instance "localhost:51011"
Fallback if no host was found, uses the Site Url configred
Last fallback, if no Site Url, for instance in a non web context (unit test/console), fall back to http://localhost
Remember to register the proper site and hosts under 'Manage Websites' in Episerver CMS, which requires app restart after configuration changes to take affectProperty Value
Type | Description |
---|---|
System.String |
Property Value
Type | Description |
---|---|
EPiServer.DataAbstraction.ProjectRepository |
Methods
Extension Methods
}