コード例 #1
0
 public ScrapeController(ILinkScraperService linkScraperService, ICacheUrlDataRepository cache, IStopwordsRepository stopwordsRepository, ITextScraperService textScraperService)
 {
     _linkScraperService = linkScraperService ?? throw new ArgumentNullException(nameof(linkScraperService));
     _textScraperService = textScraperService ?? throw new ArgumentNullException(nameof(textScraperService));
     _cache = cache ?? throw new ArgumentNullException(nameof(cache));
     _stopwordsRepository = stopwordsRepository ?? throw new ArgumentNullException(nameof(stopwordsRepository));
 }
コード例 #2
0
 public StopwordsController(IStopwordsRepository stopwordsRepository)
 {
     _stopwordsRepository = stopwordsRepository ?? throw new ArgumentNullException(nameof(stopwordsRepository));
 }