Пример #1
0
 protected QueryHandlerBase(
     ReaderAppContext dbContext,
     IAuthorizationService authservice,
     IMapper mapper) : base(dbContext, authservice, mapper)
 {
     dbContext.ChangeTracker.QueryTrackingBehavior = Microsoft.EntityFrameworkCore.QueryTrackingBehavior.NoTracking;
 }
Пример #2
0
 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);
Пример #3
0
 public LoadFileQueryHandler(
     ReaderAppContext dbContext,
     IAuthorizationService authService,
     IMapper mapper,
     IUserFileStore userFilesStore) : base(dbContext, authService, mapper) => _userFilesStore = userFilesStore;
 public AddToLearnedHandle(
     ReaderAppContext dbContext,
     IAuthorizationService authService,
     IMapper mapper,
     IUserDictionary userDictionary) : base(dbContext, authService, mapper) => _userDictionary = userDictionary;
Пример #5
0
 protected HandlerBase(
     ReaderAppContext dbContext,
     IAuthorizationService authservice,
     IMapper mapper) => (_dbContext, _authService, _mapper) = (dbContext, authservice, mapper);
Пример #6
0
 public UsersOperationsAuthorizationHandler(ReaderAppContext dbContext) => _dbContext = dbContext;
Пример #7
0
 protected CommandHandlerBase(
     ReaderAppContext dbContext,
     IAuthorizationService authservice,
     IMapper mapper) : base(dbContext, authservice, mapper)
 {
 }
Пример #8
0
 public GetUnknownWordsHandler(
     ReaderAppContext dbContext,
     IAuthorizationService authService,
     IMapper mapper,
     IFileProcessedWordsCache filesWordsCache,
     IUserDictionary userDictionary) : base(dbContext, authService, mapper) => (_filesWordsCache, _userDictionary) = (filesWordsCache, userDictionary);
Пример #9
0
 public GetUserHandler(
     ReaderAppContext dbContext,
     IAuthorizationService authService,
     IMapper mapper) : base(dbContext, authService, mapper)
 {
 }
Пример #10
0
 public DeleteFileHandler(
     ReaderAppContext dbContext,
     IAuthorizationService authService,
     IMapper mapper,
     IUserFileStore userFilesStore,
     IFileProcessedWordsCache filesWordsCache) : base(dbContext, authService, mapper) => (_userFilesStore, _filesWordsCache) = (userFilesStore, filesWordsCache);
Пример #11
0
 public FilesQueriesHandler(
     ReaderAppContext dbContext,
     IAuthorizationService authService,
     IMapper mapper) : base(dbContext, authService, mapper)
 {
 }
Пример #12
0
 public CreateUserHandler(
     ReaderAppContext dbContext,
     IAuthorizationService authService,
     IMapper mapper,
     IUserDictionary userDictionary) : base(dbContext, authService, mapper) => _userDictionary = userDictionary;