Class ServiceLocationHelperExtensions
Makes EPiServer.Commerce services part of the public API.
Inheritance
Namespace: EPiServer.Commerce.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
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)
Resolves the ReferenceConverter(ServiceProviderHelper) service.
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. |