public AccountController(ApplicationUserManager userManager, ISecureDataFormat<AuthenticationTicket> accessTokenFormat, IAchievementDb achievementDb, IAchievementCalculationManager achievementCalculationManager) { _achievementDb = achievementDb; _achievementCalculationManager = achievementCalculationManager; UserManager = userManager; AccessTokenFormat = accessTokenFormat; }
/// <summary> /// Creates the Manager using the achievementDetector to find all available achievements. /// </summary> /// <param name="achievementDetector">Detector used to find the available achievements</param> /// <param name="achievementDb">Instance of the achievement database.</param> /// <param name="logger">Logger to use.</param> public AchievementCalculationManager(IAchievementCalculatorDetector achievementDetector, IAchievementDb achievementDb, ILoggerFacade logger) { _achievementDb = achievementDb; _logger = logger; _achievementCalculators = _getAvailableAchievementCalculators(achievementDetector); _updateTask = new Task(_updateAchievements); }
/// <summary> /// Creates a new instance of the AchievementController class. /// </summary> /// <param name="achievementDb">Database of the achievement system.</param> public AchievementController(IAchievementDb achievementDb) : base(achievementDb) { }
protected AuthorizedControllerBase(IAchievementDb achievementDb) { AchievementDb = achievementDb; }