예제 #1
0
 public BooksController(IBooksService BooksService, IAccountService AccountService, ILanguagesService LanguagesService, IMasterWordsService MasterWordsService)
 {
     this.BooksService       = BooksService;
     this.AccountService     = AccountService;
     this.LanguagesService   = LanguagesService;
     this.MasterWordsService = MasterWordsService;
 }
예제 #2
0
        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>();
        }
예제 #3
0
 public WordsService(IBooksService BooksService, IMasterWordsService MasterWordsService, IDatabaseContext context) : base(context)
 {
     this.BooksService       = BooksService;
     this.MasterWordsService = MasterWordsService;
 }