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