public MangaViewModel(IMangaService mangaService) : base() { _mangaService = mangaService; _mangaAPIEnumerator = new MangaApiEnumerator(); BindingOperations.EnableCollectionSynchronization(MangaItems, _CollectionLock); }
private void InjectConfiguration(IMangaService service) { string lookupPrefix = $@"Plugin.{service.GetInformation().Name}."; var configItems = Config.FindConfigByPrefix(lookupPrefix); configItems = RemovePrefix(configItems, lookupPrefix); service.Configuration(configItems); }
public SettingsViewModel(IAnimeService animeService, IMangaService mangaService, IRunJobs <DWOneImportJob> dwOneImportJob, IRunJobs <UpdateDbEntries> updateDbEntriesJob, IDefineCanvasRoutines <Chart> canvasRoutines) { this.animeService = animeService; this.mangaService = mangaService; this.dwOneImportJob = dwOneImportJob; this.updateDbEntriesJob = updateDbEntriesJob; this.canvasRoutines = canvasRoutines; LogEvent.LogLineReceived += LogLineReceivedFunc; }
/// <summary> /// Find service base on inputed url. /// </summary> /// <param name="link"></param> /// <returns></returns> public static IMangaService GetService(string link) { IMangaService service = services.FirstOrDefault(s => s.Of(link)); if (service == null) { logger.Error("Cannot find service for link: {0}", link); throw new Exception("Cannot find service to download from input site!"); } return(service); }
public MangaController(IMangaService mangaService, IBus publisher, IGenreService genreService, IMangaPublisherService mangaPublisherService, ICurrentUserService currentUserService) { this.mangaService = mangaService; this.publisher = publisher; this.genreService = genreService; this.mangaPublisherService = mangaPublisherService; this.currentUserService = currentUserService; }
public HomeController( IAnimeService animeService, IUpdateService updateService, IAnimeReccomendationsService animeReccomendationsService, UserManager <ApplicationUser> userManager, IMangaService mangaService) { this.animeService = animeService; this.updateService = updateService; this.animeReccomendationsService = animeReccomendationsService; this.userManager = userManager; this.mangaService = mangaService; }
public MangaController(IMangaService mangaService) { this.mangaService = mangaService; }
public MangasController(IMangaService service) => _service = service;
public UpdateDbEntries(IAnimeService animeService, IMangaService mangaService) { this.animeService = animeService; this.mangaService = mangaService; }
public CanvasRoutines(IAnimeService animeService, IMangaService mangaService) { this.animeService = animeService; this.mangaService = mangaService; }