public UploadFileHandler( ReaderAppContext dbContext, IAuthorizationService authService, IMapper mapper, IUserFileStore userFilesStore, IFileProcessedWordsCache filesWordsCache, ILemmatizer lemmatizer, IUserDictionary userDictionary, PipeBuilder pipeBuilder) : base(dbContext, authService, mapper) => (_userFilesStore, _filesWordsCache, _lemmatizer, _userDictionary, _pipeBuilder) = (userFilesStore, filesWordsCache, lemmatizer, userDictionary, pipeBuilder);
public static async Task <IEnumerable <string> > SelectUnknownWordsFromLemmaGroups(this IUserDictionary userDictionary, Guid userId, IEnumerable <LemmaGroup> lemmaGroups) { var unknownLemmas = new HashSet <string>(await userDictionary.SelectUnknownWords(userId, lemmaGroups.Select(lg => lg.Lemma))); return(lemmaGroups.Where(lg => unknownLemmas.Contains(lg.Lemma)).SelectMany(lg => lg.Words)); }
public AddToLearnedHandle( ReaderAppContext dbContext, IAuthorizationService authService, IMapper mapper, IUserDictionary userDictionary) : base(dbContext, authService, mapper) => _userDictionary = userDictionary;
public GetUnknownWordsHandler( ReaderAppContext dbContext, IAuthorizationService authService, IMapper mapper, IFileProcessedWordsCache filesWordsCache, IUserDictionary userDictionary) : base(dbContext, authService, mapper) => (_filesWordsCache, _userDictionary) = (filesWordsCache, userDictionary);
public CreateUserHandler( ReaderAppContext dbContext, IAuthorizationService authService, IMapper mapper, IUserDictionary userDictionary) : base(dbContext, authService, mapper) => _userDictionary = userDictionary;