public BooksController(IBooksService BooksService, IAccountService AccountService, ILanguagesService LanguagesService, IMasterWordsService MasterWordsService) { this.BooksService = BooksService; this.AccountService = AccountService; this.LanguagesService = LanguagesService; this.MasterWordsService = MasterWordsService; }
protected void RefreshServicesAndClearCache() { DatabaseContext = m_Host.Services.GetService <IDatabaseContext>(); DatabaseContext.RefreshDatabaseContext(); BooksService = m_Host.Services.GetService <IBooksService>(); WordsService = m_Host.Services.GetService <IWordsService>(); MasterWordsService = m_Host.Services.GetService <IMasterWordsService>(); LanguagesService = m_Host.Services.GetService <ILanguagesService>(); AccountService = m_Host.Services.GetService <IAccountService>(); }
public WordsService(IBooksService BooksService, IMasterWordsService MasterWordsService, IDatabaseContext context) : base(context) { this.BooksService = BooksService; this.MasterWordsService = MasterWordsService; }