Esempio n. 1
0
 public ApiController(
     AntiPlagiarismDb db,
     ISubmissionsRepo submissionsRepo, ISnippetsRepo snippetsRepo, ITasksRepo tasksRepo,
     IClientsRepo clientsRepo, IWorkQueueRepo workQueueRepo,
     IMostSimilarSubmissionsRepo mostSimilarSubmissionsRepo,
     IManualSuspicionLevelsRepo manualSuspicionLevelsRepo,
     PlagiarismDetector plagiarismDetector,
     CodeUnitsExtractor codeUnitsExtractor,
     IServiceScopeFactory serviceScopeFactory,
     NewSubmissionHandler newSubmissionHandler,
     IOptions <AntiPlagiarismConfiguration> configuration)
     : base(clientsRepo, db)
 {
     this.submissionsRepo            = submissionsRepo;
     this.snippetsRepo               = snippetsRepo;
     this.tasksRepo                  = tasksRepo;
     this.workQueueRepo              = workQueueRepo;
     this.mostSimilarSubmissionsRepo = mostSimilarSubmissionsRepo;
     this.manualSuspicionLevelsRepo  = manualSuspicionLevelsRepo;
     this.plagiarismDetector         = plagiarismDetector;
     this.codeUnitsExtractor         = codeUnitsExtractor;
     this.newSubmissionHandler       = newSubmissionHandler;
     this.serviceScopeFactory        = serviceScopeFactory;
     this.configuration              = configuration.Value;
 }
Esempio n. 2
0
 protected BaseController(ILogger logger, IClientsRepo clientsRepo, AntiPlagiarismDb db)
 {
     this.logger      = logger;
     this.clientsRepo = clientsRepo;
     this.db          = db;
 }
Esempio n. 3
0
 protected BaseController(IClientsRepo clientsRepo, AntiPlagiarismDb db)
 {
     this.clientsRepo = clientsRepo;
     this.db          = db;
 }
Esempio n. 4
0
 public ApiController(
     AntiPlagiarismDb db,
     ISubmissionsRepo submissionsRepo, ISnippetsRepo snippetsRepo, ITasksRepo tasksRepo, IClientsRepo clientsRepo,
     StatisticsParametersFinder statisticsParametersFinder,
     PlagiarismDetector plagiarismDetector,
     CodeUnitsExtractor codeUnitsExtractor,
     SubmissionSnippetsExtractor submissionSnippetsExtractor,
     ILogger logger,
     IServiceScopeFactory serviceScopeFactory,
     IOptions <AntiPlagiarismConfiguration> configuration)
     : base(logger, clientsRepo, db)
 {
     this.submissionsRepo             = submissionsRepo;
     this.snippetsRepo                = snippetsRepo;
     this.tasksRepo                   = tasksRepo;
     this.statisticsParametersFinder  = statisticsParametersFinder;
     this.plagiarismDetector          = plagiarismDetector;
     this.codeUnitsExtractor          = codeUnitsExtractor;
     this.submissionSnippetsExtractor = submissionSnippetsExtractor;
     this.serviceScopeFactory         = serviceScopeFactory;
     this.configuration               = configuration.Value;
 }
 public ClientsController(IClientsRepo repository)
 {
     _repository = repository;
 }
Esempio n. 6
0
 public HomeController(IClientsRepo cliensRepo, ILogger logger)
     : base(logger)
 {
 }