KiiCloudStorageSDK : KiiCorp.Cloud.ABTesting Namespace

VariationSamplerByKiiUser Class

Sampler using KiiUser attributes. This uses current login KiiUser ID to randomise the variation.

Syntax

public class VariationSamplerByKiiUser : VariationSampler

Remarks

Requirements

Namespace: KiiCorp.Cloud.ABTesting
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

Members

See Also: Inherited members from object.

Public Constructors

Public Methods

ChooseVariation (KiiExperiment, Variation) : Variation
Do sampling. Returns random variation based on the percentage configured in developer portal. If sampling is failed, returns the fallback. If the experiment has terminated and fixed variation has chosen, returns chosen variation. Returned variation is same as KiiExperiment.ChosenVariation

Member Details

VariationSamplerByKiiUser Constructor

Initializes a new instance of the KiiCorp.Cloud.ABTesting.VariationSamplerByKiiUser class.

Syntax

public VariationSamplerByKiiUser ()

Remarks

Requirements

Namespace: KiiCorp.Cloud.ABTesting
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

ChooseVariation Method

Do sampling. Returns random variation based on the percentage configured in developer portal. If sampling is failed, returns the fallback. If the experiment has terminated and fixed variation has chosen, returns chosen variation. Returned variation is same as KiiExperiment.ChosenVariation

Syntax

public Variation ChooseVariation (KiiExperiment experiment, Variation fallback)

Parameters

experiment
that requires sampling.
fallback
The variation to return when failed to get the applied variation.

Returns

Applied variation for this time.

Remarks

Requirements

Namespace: KiiCorp.Cloud.ABTesting
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0