Exemplo n.º 1
0
        public MangaViewModel(IMangaService mangaService) : base()
        {
            _mangaService       = mangaService;
            _mangaAPIEnumerator = new MangaApiEnumerator();

            BindingOperations.EnableCollectionSynchronization(MangaItems, _CollectionLock);
        }
Exemplo n.º 2
0
        private void InjectConfiguration(IMangaService service)
        {
            string lookupPrefix = $@"Plugin.{service.GetInformation().Name}.";
            var    configItems  = Config.FindConfigByPrefix(lookupPrefix);

            configItems = RemovePrefix(configItems, lookupPrefix);
            service.Configuration(configItems);
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        /// <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);
        }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
 public MangaController(IMangaService mangaService)
 {
     this.mangaService = mangaService;
 }
Exemplo n.º 8
0
 public MangasController(IMangaService service) => _service = service;
Exemplo n.º 9
0
 public UpdateDbEntries(IAnimeService animeService, IMangaService mangaService)
 {
     this.animeService = animeService;
     this.mangaService = mangaService;
 }
Exemplo n.º 10
0
 public CanvasRoutines(IAnimeService animeService, IMangaService mangaService)
 {
     this.animeService = animeService;
     this.mangaService = mangaService;
 }