Ejemplo 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);
     SegmentEvaluator   = new SegmentEvaluator();
     SettingsProcessor  = new SettingsProcessor();
 }
Ejemplo n.º 2
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;
 }