Initialization

Initialize an instance of vwoInstance, which will then be used to manage all feature flags and rules. This vwoInstance contains all the feature flags and rules you have configured in your VWO dashboard.

Usage

using VWOFmeSdk;

var vwoInitOptions = new VWOInitOptions{
	SdkKey = "32-alpha-numeric-sdk-key", // Replace with your SDK key
	AccountId = 123456 // Replace with your account ID
};

var vwoClient = VWO.Init(vwoInitOptions);

As shown above, to initialize the vwoInstance, you need to call the VWO.Init() function, which requires two mandatory parameters:

  1. AccountId : This is the unique VWO account ID which you can find in your VWO Dashboard.
  2. SdkKey : A unique 32-character string corresponding to the project/app created in VWO. You will find this in the Websites & Apps section in VWO.

Parameter Definitions

ParameterTypeDescription
AccountId
Required
intYour VWO application's Account ID.
SdkKey
Required
stringUnique environment key provided to you inside the Websites & Apps section in VWO application, under "Default Project".
PollInterval
Optional
intTime period (in milliseconds) at which VWO should check with the server for any updates to the feature flag or rules in the VWO Dashboard. Useful to keep your vwoClient instance up to date with any changes made in the VWO Application. Polling
Logger
Optional
ILoggerAn optional logger object that defines the logging behaviour. Logger
Storage
Optional
IStorageStorage Service, if required, can be implemented using this parameter Storage Service
GatewayService
Optional
DictionaryIf using the FME Gateway Service, this object will specify the location and port of where the gateway service is deployed on your servers.
Integrations
Optional
ActionContains a callback function that receives campaign data which can be pushed to any external tool that you need to integrate with. Integrations

Keeping vwoClient up-to-date

When you initialize the vwoClient on your server, it pulls the latest configurations you've made in the VWO application.
If/when you make any changes to the feature flags or rules within VWO after the vwoInstance has been initialized in your server, there needs to be some way to update your vwoInstance with the latest settings from VWO. This can be done via polling.