예제 #1
0
        public CommandHandlingService(
            IServiceProvider provider,
            DiscordSocketClient discord,
            CommandService commands,
            MangaService mangaService,
            UserAlertService userAlertService,
            ChannelService channelService,
            ServerAlertService serverAlertService,
            MangaUpdatesCrawlerService mangaUpdatesService,
            UnionMangasCrawlerService unionMangasService,
            //TuMangaCrawlerService tuMangaService,
            InfoAnimeCrawlerService infoAnimeCrawlerService,
            AppDbContext dbContext)
        {
            this.discord             = discord;
            this.commands            = commands;
            this.mangaService        = mangaService;
            this.userAlertService    = userAlertService;
            this.channelService      = channelService;
            this.serverAlertService  = serverAlertService;
            this.mangaUpdatesService = mangaUpdatesService;
            this.unionMangasService  = unionMangasService;
            //this.tuMangaService = tuMangaService;
            this.infoAnimeService = infoAnimeCrawlerService;
            this.provider         = provider;
            this.dbContext        = dbContext;

            this.discord.Connected += Update;
            resourceManager         = new ResourceManager(typeof(WebJobResource));
        }
예제 #2
0
 public CrawlerService(
     MangaUpdatesCrawlerService mangaUpdates,
     //TuMangaCrawlerService tuManga,
     UnionMangasCrawlerService unionMangas,
     InfoAnimeCrawlerService infoAnimeCrawlerService)
 {
     this.mangaUpdates = mangaUpdates;
     //this.tuManga = tuManga;
     this.unionMangas = unionMangas;
     this.infoAnime   = infoAnimeCrawlerService;
 }