SaaS CMS has officially launched! Learn more now.

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.