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
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public static class ServiceLocationHelperExtensions

Methods

CategoryRepository(ServiceLocationHelper)

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)

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)

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)

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.