Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class ServiceLocationHelperExtensions

Makes EPiServer.Commerce services part of the public API.

Inheritance
System.Object
ServiceLocationHelperExtensions
Namespace: EPiServer.Commerce.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public static class ServiceLocationHelperExtensions : Object

Methods

CatalogSystem(ServiceProviderHelper)

Resolves the ICatalogSystem service.

Declaration
public static ICatalogSystem CatalogSystem(this ServiceProviderHelper serviceLocationHelper)
Parameters
Type Name Description
EPiServer.ServiceLocation.ServiceProviderHelper serviceLocationHelper

The service location helper.

Returns
Type Description
ICatalogSystem

An instance of the currently registered ICatalogSystem service.

CurrentMarket(ServiceProviderHelper)

Resolves the ICurrentMarket service.

Declaration
public static ICurrentMarket CurrentMarket(this ServiceProviderHelper serviceLocationHelper)
Parameters
Type Name Description
EPiServer.ServiceLocation.ServiceProviderHelper serviceLocationHelper

The service location helper.

Returns
Type Description
ICurrentMarket

An instance of the currently registered ICurrentMarket service.

MarketService(ServiceProviderHelper)

Resolves the IMarketService service.

Declaration
public static IMarketService MarketService(this ServiceProviderHelper serviceLocationHelper)
Parameters
Type Name Description
EPiServer.ServiceLocation.ServiceProviderHelper serviceLocationHelper

The service location helper.

Returns
Type Description
IMarketService

An instance of the currently registered IMarketService service.

ReferenceConverter(ServiceProviderHelper)

Declaration
public static ReferenceConverter ReferenceConverter(this ServiceProviderHelper serviceLocationHelper)
Parameters
Type Name Description
EPiServer.ServiceLocation.ServiceProviderHelper serviceLocationHelper

The service location helper.

Returns
Type Description
ReferenceConverter

An instance of the currently registered ReferenceConverter(ServiceProviderHelper) service.