Esempio n. 1
0
 public async Task <Source> Get(CrawlingType crawlingType, string boardId)
 {
     return(await _mongoDbSource.FindOneAsync(Builders <Source> .Filter.Eq(x => x.Type, crawlingType)&
                                              Builders <Source> .Filter.Eq(x => x.BoardId, boardId)));
 }
Esempio n. 2
0
 public async Task <Rss> Get(string url)
 {
     return(await _mongoDbRss.FindOneAsync(Builders <Rss> .Filter.Eq(x => x.Url, url)));
 }
Esempio n. 3
0
        public async Task Execute(string region, string content, List <string> imageUrls = null)
        {
            var notification = await _mongoDbNotification.FindOneAsync(Builders <Notification> .Filter.Eq(x => x.Region, region));

            _discordWebHooks.Add(DiscordNotify(notification, content, imageUrls));
        }