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
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public static class ServiceLocationHelperExtensions
Methods
ContentLoader(ServiceLocationHelper)
Resolves the IContentLoader service.
Declaration
public static IContentLoader ContentLoader(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type | Name | Description |
---|---|---|
ServiceLocationHelper | serviceLocationHelper | The service location helper. |
Returns
Type | Description |
---|---|
IContentLoader | An instance of the currently registered IContentLoader service. |
ContentRepository(ServiceLocationHelper)
Resolves the IContentRepository service.
Declaration
public static IContentRepository ContentRepository(this ServiceLocationHelper serviceLocationHelper)
Parameters
Type | Name | Description |
---|---|---|
ServiceLocationHelper | serviceLocationHelper | The service location helper. |
Returns
Type | Description |
---|---|
IContentRepository | An instance of the currently registered IContentRepository service. |