Esempio n. 1
0
 /// <summary>
 /// Static Constructor to init default dependencies on application load.
 /// </summary>
 static VWO()
 {
     Validator          = new Validator();
     UserHasher         = new Murmur32BucketService();
     CampaignAllocator  = new CampaignAllocator(UserHasher);
     VariationAllocator = new VariationAllocator(UserHasher);
     SettingsProcessor  = new SettingsProcessor();
 }
Esempio n. 2
0
 internal VWO(AccountSettings settings, IValidator validator, IUserProfileService userProfileService, ICampaignAllocator campaignAllocator, IVariationAllocator variationAllocator, bool isDevelopmentMode)
 {
     this._settings           = settings;
     this._validator          = validator;
     this._userProfileService = new UserProfileAdapter(userProfileService);
     this._campaignAllocator  = campaignAllocator;
     this._variationAllocator = variationAllocator;
     this._isDevelopmentMode  = isDevelopmentMode;
 }
Esempio n. 3
0
 internal VWO(AccountSettings settings, IValidator validator, IUserStorageService userStorageService, ICampaignAllocator campaignAllocator, ISegmentEvaluator segmentEvaluator, IVariationAllocator variationAllocator, bool isDevelopmentMode, string goalTypeToTrack = Constants.GoalTypes.ALL, bool shouldTrackReturningUser = false)
 {
     this._settings                 = settings;
     this._validator                = validator;
     this._userStorageService       = new UserStorageAdapter(userStorageService);
     this._campaignAllocator        = campaignAllocator;
     this._variationAllocator       = variationAllocator;
     this._isDevelopmentMode        = isDevelopmentMode;
     this._segmentEvaluator         = segmentEvaluator;
     this._goalTypeToTrack          = goalTypeToTrack;
     this._shouldTrackReturningUser = shouldTrackReturningUser;
 }