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

Class ServiceLocationHelperExtensions

Makes EPiServer.Core services part of the public API.

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

Methods

ContentLoader(ServiceProviderHelper)

Resolves the IContentLoader service.

Declaration
public static IContentLoader ContentLoader(this ServiceProviderHelper serviceLocationHelper)
Parameters
Type Name Description
ServiceProviderHelper serviceLocationHelper

The service location helper.

Returns
Type Description
IContentLoader

An instance of the currently registered IContentLoader service.

ContentRepository(ServiceProviderHelper)

Resolves the IContentRepository service.

Declaration
public static IContentRepository ContentRepository(this ServiceProviderHelper serviceLocationHelper)
Parameters
Type Name Description
ServiceProviderHelper serviceLocationHelper

The service location helper.

Returns
Type Description
IContentRepository

An instance of the currently registered IContentRepository service.