Click or drag to resize
CachedABTestManager Class
Acts as a decorator for IABTestManager and adds caching to methods.
Inheritance Hierarchy
SystemObject
  CMS.OnlineMarketingCachedABTestManager

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 13.0.131
Syntax
C#
public class CachedABTestManager : ICachedABTestManager, 
	IABTestManager

The CachedABTestManager type exposes the following members.

Constructors
  NameDescription
Public methodCachedABTestManager
Initializes a new instance of CachedABTestManager.
Top
Properties
  NameDescription
Protected propertyCacheMinutes
Gets the number of minutes used for absolute cache expiration.
Top
Methods
  NameDescription
Public methodAddVariant
Adds a new A/B test variant into page based on an existing source variant.
Public methodCreateABTest
Creates a new A/B test for page with included traffic set to 100 and stores it to the database. If the page has any A/B test variants defined, they are cleared.
Public methodGetABTestWithoutWinner
Gets A/B test without a winner for a given page. Returns null if no A/B test is associated with the page or associated A/B test has a winner.
Public methodGetRunningABTest
Gets A/B test for page which is still running. Returns null if no running A/B is available for the page. Results of this method are cached.
Public methodGetVariants
Returns all A/B test variants existing for given page.
Public methodPromoteVariant
Promotes a variant identified by variantGuid as the winner variant. Winning variant is stored in the database within the A/B test.
Public methodRemoveVariant
Removes an A/B test variant identified by variantGuid from page.
Public methodRenameVariant
Renames an A/B test variant in page identified by variant GUID with given name.
Public methodUpdateVariant
Updates an A/B test variant in page identified by variant GUID with given Page builder widgets configuration.
Top
Remarks
The implementation caches the GetRunningABTest(TreeNode) method's return value only.
See Also