/// <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(); }
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; }