コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NewEpisodes"/> class.
 /// </summary>
 public NewEpisodes()
 {
     using (IKernel kernel = new StandardKernel(new ModuleForBackgroundUpdater()))
     {
         this.manager            = kernel.Get <TvShowsInformationManager>();
         this.repository         = kernel.Get <ITvShowNewEpisodesRepository>();
         this.seasonsRepository  = kernel.Get <ISeasonsRepository>();
         this.episodesRepository = kernel.Get <IEpisodesRepository>();
         this.tvshowsRepository  = kernel.Get <ITvShowsRepository>();
         this.logger             = kernel.Get <ILogger>();
     }
 }
コード例 #2
0
 public AccessTvShowsController(ITvShowsRepository repo)
 {
     _repo = repo;
 }
コード例 #3
0
 public HomeController(ITvShowsRepository repo)
 {
     _repo = repo;
 }