Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Class ServiceLocationHelperExtensions

Makes EPiServer.Core 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.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public static class ServiceLocationHelperExtensions

Methods

ContentEvents(ServiceLocationHelper)

Resolves the IContentEvents service.

Declaration
public static IContentEvents ContentEvents(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type Name Description
ServiceLocationHelper serviceLocationHelper

The service location helper.

Returns
Type Description
IContentEvents

An instance of the currently registered IContentEvents service.

PageCriteriaQueryService(ServiceLocationHelper)

Resolves the IPageCriteriaQueryService service.

Declaration
public static IPageCriteriaQueryService PageCriteriaQueryService(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type Name Description
ServiceLocationHelper serviceLocationHelper

The service location helper.

Returns
Type Description
IPageCriteriaQueryService

An instance of the currently registered IPageCriteriaQueryService service.