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))); }
public async Task <Rss> Get(string url) { return(await _mongoDbRss.FindOneAsync(Builders <Rss> .Filter.Eq(x => x.Url, url))); }
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)); }