/// <summary> /// Initialize a decision service for the Optimizely client. /// </summary> /// <param name = "bucketer" > Base bucketer to allocate new users to an experiment.</param> /// <param name = "errorHandler" > The error handler of the Optimizely client.</param> /// <param name = "projectConfig" > Optimizely Project Config representing the datafile.</param> /// <param name = "userProfileService" ></ param > /// < param name= "logger" > UserProfileService implementation for storing user info.</param> public DecisionService(Bucketer bucketer, IErrorHandler errorHandler, ProjectConfig projectConfig, UserProfileService userProfileService, ILogger logger) { Bucketer = bucketer; ErrorHandler = errorHandler; ProjectConfig = projectConfig; UserProfileService = userProfileService; Logger = logger; }
/// <summary> /// Initialize a decision service for the Optimizely client. /// </summary> /// <param name = "bucketer" > Base bucketer to allocate new users to an experiment.</param> /// <param name = "errorHandler" > The error handler of the Optimizely client.</param> /// <param name = "userProfileService" ></ param > /// < param name= "logger" > UserProfileService implementation for storing user info.</param> public DecisionService(Bucketer bucketer, IErrorHandler errorHandler, UserProfileService userProfileService, ILogger logger) { Bucketer = bucketer; ErrorHandler = errorHandler; UserProfileService = userProfileService; Logger = logger; #if NET35 ForcedVariationMap = new Dictionary <string, Dictionary <string, string> >(); #else ForcedVariationMap = new System.Collections.Concurrent.ConcurrentDictionary <string, Dictionary <string, string> >(); #endif }