World is now on Opti ID! Learn more

Class CategorySelectionFactory

Inheritance
System.Object
CategorySelectionFactory
Implements
EPiServer.Personalization.VisitorGroups.ISelectionFactory
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.Business.Commerce.VisitorGroupsCriteria
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class CategorySelectionFactory : ISelectionFactory

Constructors

CategorySelectionFactory()

Declaration
public CategorySelectionFactory()

CategorySelectionFactory(IContentLoader, ReferenceConverter, IPublishedStateAssessor, ISynchronizedObjectInstanceCache)

Initializes a new instance of CategorySelectionFactory.

Declaration
public CategorySelectionFactory(IContentLoader contentLoader, ReferenceConverter referenceConverter, IPublishedStateAssessor publishedStateAssessor, ISynchronizedObjectInstanceCache objectInstanceCache)
Parameters
Type Name Description
EPiServer.IContentLoader contentLoader

The content loader.

ReferenceConverter referenceConverter

The reference converter.

EPiServer.Core.IPublishedStateAssessor publishedStateAssessor

The published state accessor.

EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache objectInstanceCache

The synchronized object instance cache.

CategorySelectionFactory(ICatalogSystem, ISynchronizedObjectInstanceCache)

Declaration
[Obsolete("Use the constructor that uses IContentLoader and ReferenceConverter instead. Will remain at least until March 2020.")]
public CategorySelectionFactory(ICatalogSystem catalogSystem, ISynchronizedObjectInstanceCache objectInstanceCache)
Parameters
Type Name Description
ICatalogSystem catalogSystem
EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache objectInstanceCache

Methods

GetSelectListItems(Type)

Gets a list op options for all categoreis.

Declaration
public IEnumerable<SelectListItem> GetSelectListItems(Type property)
Parameters
Type Name Description
System.Type property

The type of the property.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>

A list of options for all categoreis on the site

Implements

EPiServer.Personalization.VisitorGroups.ISelectionFactory