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