Esempio n. 1
0
 public FileProcessor(ITextAnalyticsClient analyticsClient, IKeyPhraseRepository keyPhraseRepository, IHubContext <Hubs.File> hubContext)
 {
     _analyticsClient     = analyticsClient ?? throw new ArgumentNullException(nameof(analyticsClient));
     _keyPhraseRepository = keyPhraseRepository ?? throw new ArgumentNullException(nameof(keyPhraseRepository));
     _hubContext          = hubContext ?? throw new ArgumentNullException(nameof(hubContext));
 }
Esempio n. 2
0
 public FilesController(IFileProcessor fileProcessor, IKeyPhraseRepository phraseRepository)
 {
     _fileProcessor    = fileProcessor ?? throw new ArgumentNullException(nameof(fileProcessor));
     _phraseRepository = phraseRepository ?? throw new ArgumentNullException(nameof(phraseRepository));
 }