Class ServiceLocationHelperExtensions
Makes EPiServer.Commerce 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.Commerce.Extensions
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public static class ServiceLocationHelperExtensions
  Methods
CatalogSystem(ServiceLocationHelper)
Resolves the ICatalogSystem service.
Declaration
public static ICatalogSystem CatalogSystem(this ServiceLocationHelper serviceLocationHelper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| EPiServer.ServiceLocation.ServiceLocationHelper | serviceLocationHelper | The service location helper.  | 
      
Returns
| Type | Description | 
|---|---|
| ICatalogSystem | An instance of the currently registered ICatalogSystem service.  | 
      
CurrentMarket(ServiceLocationHelper)
Resolves the ICurrentMarket service.
Declaration
public static ICurrentMarket CurrentMarket(this ServiceLocationHelper serviceLocationHelper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| EPiServer.ServiceLocation.ServiceLocationHelper | serviceLocationHelper | The service location helper.  | 
      
Returns
| Type | Description | 
|---|---|
| ICurrentMarket | An instance of the currently registered ICurrentMarket service.  | 
      
MarketService(ServiceLocationHelper)
Resolves the IMarketService service.
Declaration
public static IMarketService MarketService(this ServiceLocationHelper serviceLocationHelper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| EPiServer.ServiceLocation.ServiceLocationHelper | serviceLocationHelper | The service location helper.  | 
      
Returns
| Type | Description | 
|---|---|
| IMarketService | An instance of the currently registered IMarketService service.  | 
      
ReferenceConverter(ServiceLocationHelper)
Resolves the ReferenceConverter(ServiceLocationHelper) service.
Declaration
public static ReferenceConverter ReferenceConverter(this ServiceLocationHelper serviceLocationHelper)
  Parameters
| Type | Name | Description | 
|---|---|---|
| EPiServer.ServiceLocation.ServiceLocationHelper | serviceLocationHelper | The service location helper.  | 
      
Returns
| Type | Description | 
|---|---|
| ReferenceConverter | An instance of the currently registered ReferenceConverter(ServiceLocationHelper) service.  |