Class ActiveMarketCriterion

Matches the active market.

Inheritance
System.Object
ActiveMarketCriterion
Namespace: EPiServer.Commerce.VisitorGroupsCriteria
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class ActiveMarketCriterion : CriterionBase<ActiveMarketModel>

Constructors

ActiveMarketCriterion()

Initializes a new instance of the ActiveMarketCriterion class.

Declaration
public ActiveMarketCriterion()

ActiveMarketCriterion(ICurrentMarket)

Initializes a new instance of the ActiveMarketCriterion class.

Declaration
public ActiveMarketCriterion(ICurrentMarket currentMarketService)
Parameters
Type Name Description
ICurrentMarket currentMarketService

The current market service.

Methods

IsMatch(IPrincipal, HttpContextBase)

Determines wheter the current market matches the market set in the criterion.

Declaration
public override bool IsMatch(IPrincipal principal, HttpContextBase httpContext)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal.

System.Web.HttpContextBase httpContext

The HTTP context.

Returns
Type Description
System.Boolean

true if the the markets match; otherwise, false.