Interface ICurrentMarket

Resolves the current market for this request / user

Namespace: Mediachase.Commerce
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public interface ICurrentMarket

Methods

GetCurrentMarket()

Gets the current market.

Declaration
IMarket GetCurrentMarket()
Returns
Type Description
IMarket

The current market.

SetCurrentMarket(MarketId)

Sets the current market.

Declaration
void SetCurrentMarket(MarketId marketId)
Parameters
Type Name Description
MarketId marketId

The market id to set.

Remarks

An implementation is free to ignore calls to this method, and instead return the result from GetCurrentMarket based on some other mechanism (for example geo-IP lookup).