public QuestionsController(ICommandBus commandBus, IQuestionManager questionManager) { _commandBus = commandBus; _questionManager = questionManager; _questionMapper = new QuestionToQuestionMapper(); }
public QuestionController(IQuestionManager manager) { this._manager = manager; }
public QuestionController() { _manager = new QuestionManager(); }
public QuestionController() { QuestionManager = Site.QuestionManager; }
private IQuestionManager CreateQuestionMgr(IConfigSetting setting) { if (this.questionMgr == null) { questionMgr = (IQuestionManager)this.setting.Property["type"].ToObject(typeof(IQuestionManager), true); questionMgr.Init(setting); } return this.questionMgr; }
/// <summary> /// 初始化模块 /// </summary> /// <param name="framework">IFramework</param> /// <param name="setting">对应的配置节</param> protected override void OnInit(IFramework framework, IConfigSetting setting) { base.OnInit(framework, setting); questionMgr = this.CreateQuestionMgr(this.setting); }
public QuestionController(IQuestionManager questionManager) { _questionManager = questionManager; }
public GameController(IAccountManager accountManager, IGameManager gameManager, IThemeManager themeManager, IQuestionManager questionManager) { _accountManager = accountManager ?? throw new ArgumentNullException(nameof(accountManager)); _gameManager = gameManager ?? throw new ArgumentNullException(nameof(gameManager)); _themeManager = themeManager ?? throw new ArgumentNullException(nameof(themeManager)); _questionManager = questionManager ?? throw new ArgumentNullException(nameof(questionManager)); }