Class ServiceLocationHelperExtensions
Makes EPiServer.DataAbstraction services part of the public API.
Inheritance
Inherited Members
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public static class ServiceLocationHelperExtensions
Methods
ContentTypeRepository(ServiceLocationHelper)
Resolves the Content
Declaration
public static IContentTypeRepository ContentTypeRepository(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceLocationHelper | The service location helper. |
Returns
Type | Description |
---|---|
IContent |
An instance of the currently registered Content |
LanguageBranchRepository(ServiceLocationHelper)
Resolves the ILanguage
Declaration
public static ILanguageBranchRepository LanguageBranchRepository(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceLocationHelper | The service location helper. |
Returns
Type | Description |
---|---|
ILanguage |
An instance of the currently registered ILanguage |
ProjectPublisher(ServiceLocationHelper)
Resolves the Project
Declaration
public static ProjectPublisher ProjectPublisher(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceLocationHelper | The service location helper. |
Returns
Type | Description |
---|---|
Project |
An instance of the currently registered Project |
ProjectRepository(ServiceLocationHelper)
Resolves the Project
Declaration
public static ProjectRepository ProjectRepository(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceLocationHelper | The service location helper. |
Returns
Type | Description |
---|---|
Project |
An instance of the currently registered Project |
PropertyDefinitionRepository(ServiceLocationHelper)
Resolves the IProperty
Declaration
public static IPropertyDefinitionRepository PropertyDefinitionRepository(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type | Name | Description |
---|---|---|
Service |
serviceLocationHelper | The service location helper. |
Returns
Type | Description |
---|---|
IProperty |
An instance of the currently registered IProperty |