public HeartbeatCashoutStarterPeriodicalHandler( HeartbeatCashoutPeriodicalHandlerSettings settings, TimeSpan timerPeriod, ILogFactory logFactory, ILastCashoutEventMomentRepository lastMomentRepo, ICashoutLockRepository cashoutLockRepository, ICqrsEngine cqrsEngine) { _settings = settings; _lastMomentRepo = lastMomentRepo; _cashoutLockRepository = cashoutLockRepository; _cqrsEngine = cqrsEngine; _log = logFactory.CreateLog(this); _timer = new TimerTrigger( $"{nameof(HeartbeatCashoutStarterPeriodicalHandler)} : {settings.AssetId}", timerPeriod, logFactory); _timer.Triggered += Execute; }
public CheckCashoutPreconditionsCommandHandler(ILastCashoutEventMomentRepository lastCashoutEventMomentRepository, IChaosKitty chaosKitty) { _lastCashoutEventMomentRepository = lastCashoutEventMomentRepository; _chaosKitty = chaosKitty; }
public RegisterCashoutRegistrationLastMomentCommandHandler(IChaosKitty chaosKitty, ILastCashoutEventMomentRepository lastMomentRepository) { _chaosKitty = chaosKitty; _lastMomentRepository = lastMomentRepository; }