November Happy Hour will be moved to Thursday December 5th.

Class ServiceLocationHelperExtensions

Makes EPiServer.DataAbstraction services part of the public API.

Inheritance
System.Object
ServiceLocationHelperExtensions
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class ServiceLocationHelperExtensions : Object

Methods

CategoryRepository(ServiceProviderHelper)

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)

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)

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)

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.