public Rater(IRatingUpdater ratingUpdater) { // _context = context; // _logger = context.Logger; _ratingUpdater = ratingUpdater; }
public RaceState(IQualificationResultRatingProvider qualificationResultRatingProvider, IRatingUpdater ratingUpdater, ISessionFinishStateFactory finishStateFactory, SharedContext sharedContext, IReferenceRatingProviderFactory referenceRatingProviderFactory, ISettingsProvider settingsProvider) : base(sharedContext, referenceRatingProviderFactory, settingsProvider) { _qualificationResultRatingProvider = qualificationResultRatingProvider; _ratingUpdater = ratingUpdater; _finishStateFactory = finishStateFactory; _graceLaps = settingsProvider.DisplaySettingsViewModel.RatingSettingsViewModel.GraceLapsCount; _flashStopwatch = new Stopwatch(); _ratingComputed = false; _wasMoving = false; }
public BuyOfferController(IUnitOfWorkFactory factory, IRatingUpdater ratingUpdater) { _service = new BuyOfferService(factory); _buyAssembler = new BuyOfferAssembler(new ProductAssembler(new ConditionAssembler(), new GenreAssembler(), new ProductTypeAssembler()), new UserAssembler(new AddressAssembler())); _sellAssembler = new SellOfferAssembler(new ProductAssembler(new ConditionAssembler(), new GenreAssembler(), new ProductTypeAssembler()), new UserAssembler(new AddressAssembler())); _transactionService = new TransactionService(factory, ratingUpdater); }
public async Task <IActionResult> RollbackRatingChanges( [FromServices] IRatingUpdater ratingUpdater) { if (!CcsDefaults.SupportsRating || Contest.Settings.RatingChangesApplied != true) { return(NotFound()); } await Context.RollbackRatingChangesAsync(); StatusMessage = "Rating changes has been rolled back."; return(RedirectToAction(nameof(Detail), new { rejudgingid = Contest.Settings.SystemTestRejudgingId })); }
public PuzzleController(IPuzzlesBeingEditedRepository _puzzlesBeingEdited, IPuzzleRepository _puzzleRepository, IUserRepository _userRepository, IRatingUpdater _ratingUpdater, IMoveCollectionTransformer _movecollectionTransformer, IPuzzleTrainingSessionRepository _puzzleTrainingSessionRepository, ICounterRepository _counterRepository, IPersistentLoginHandler _loginHandler, IGameConstructor _gameConstructor) : base(_userRepository, _loginHandler) { puzzlesBeingEdited = _puzzlesBeingEdited; puzzleRepository = _puzzleRepository; ratingUpdater = _ratingUpdater; moveCollectionTransformer = _movecollectionTransformer; puzzleTrainingSessionRepository = _puzzleTrainingSessionRepository; counterRepository = _counterRepository; gameConstructor = _gameConstructor; }
public async Task <IActionResult> ApplyRatingChanges( [FromServices] IRatingUpdater ratingUpdater) { var rejudgingid = Contest.Settings.SystemTestRejudgingId; if (!CcsDefaults.SupportsRating || rejudgingid == null || Contest.Settings.RatingChangesApplied == true) { return(NotFound()); } if ((await Context.CountJudgingsAsync(j => j.RejudgingId == rejudgingid && (j.Status == Verdict.Pending || j.Status == Verdict.Running))) > 0) { StatusMessage = "System test is not finished. Please wait patiently."; return(RedirectToAction(nameof(Detail), new { rejudgingid })); } await Context.ApplyRatingChangesAsync(); StatusMessage = "Rating changes has been applied to participants."; return(RedirectToAction(nameof(Detail), new { rejudgingid })); }
public Rater(IRatingUpdater ratingUpdater) { _ratingUpdater = ratingUpdater; }
public FloodPolicyRater(IRatingUpdater ratingUpdater) : base(ratingUpdater) { }
public AutoPolicyRater(IRatingUpdater ratingUpdater) : base(ratingUpdater) { _ratingUpdater = ratingUpdater; }
public LandPolicyRater(IRatingUpdater ratingUpdater) : base(ratingUpdater) { }
public LifePolicyRater(IRatingUpdater ratingUpdater) : base(ratingUpdater) { }
public LifePolicyRater(IRatingContext ratingUpdater) : base(ratingUpdater) { _ratingUpdater = ratingUpdater; }
protected Rater(IRatingUpdater ratingUpdater) { _ratingUpdater = ratingUpdater; _logger = new ConsoleLogger(); }
public UnknownPolicyRater(IRatingUpdater ratingUpdater) : base(ratingUpdater) { }
public TransactionService(IUnitOfWorkFactory factory, IRatingUpdater ratingUpdater) { _factory = factory; _ratingUpdater = ratingUpdater; }