November Happy Hour will be moved to Thursday December 5th.

Class CatalogContext

Catalog Context class is an entry point for all calls that are made to the catalog system. This class can be used for either remote or local usage.

Inheritance
System.Object
CatalogContext
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: Mediachase.Commerce.Catalog
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
public class CatalogContext

Constructors

CatalogContext()

Declaration
public CatalogContext()

Properties

Current

Gets the current.

Declaration
public static ICatalogSystem Current { get; }
Property Value
Type Description
ICatalogSystem

The current.

DisableVersionSync

Gets the value of the DisableVersionSync appSetting, indicating whether an update to Catalog content done outside the Content APIs will remove any version data (e.g. drafts, old published versions...) for the affected Content. Setting this to true can improve the speed of batch operations done through the lower-level API:s (like ICatalogSystem), e.g. the catalog import.

Declaration
public static bool DisableVersionSync { get; }
Property Value
Type Description
System.Boolean

true to delete all versions; false to update versions if content models are available.

MetaDataContext

Gets or sets the meta data context.

Declaration
public static MetaDataContext MetaDataContext { get; set; }
Property Value
Type Description
MetaDataContext

The meta data context.

Methods

GetCatalogSystemVersion(out Int32, out Int32, out Int32, out DateTime)

Declaration
[Obsolete("This method is no longer used. Will remain at least until August 2018.")]
public static int GetCatalogSystemVersion(out int major, out int minor, out int patch, out DateTime installDate)
Parameters
Type Name Description
System.Int32 major
System.Int32 minor
System.Int32 patch
System.DateTime installDate
Returns
Type Description
System.Int32