public StoreTotalTokensPeriodicalHandler(ITokensStatisticsService tokensStatisticsService,
                                          ILogFactory logFactory)
 {
     _log = logFactory.CreateLog(this);
     _tokensStatisticsService = tokensStatisticsService;
     _timerTrigger            = new TimerTrigger(nameof(StoreTotalTokensPeriodicalHandler), TimeSpan.FromDays(1), logFactory);
     _timerTrigger.Triggered += Execute;
 }
 public StartupManager(
     ITokensStatisticsService tokensStatisticsService,
     IEnumerable <IStartStop> startables,
     ILogFactory logFactory)
 {
     _tokensStatisticsService = tokensStatisticsService;
     _startables = startables;
     _log        = logFactory.CreateLog(this);
 }
Esempio n. 3
0
 public PartnersPaymentSucceededSubscriber(
     ITokensStatisticsService tokensStatisticsService,
     string connectionString,
     string exchangeName,
     string queueName,
     ILogFactory logFactory)
     : base(connectionString, exchangeName, queueName, logFactory)
 {
     _tokensStatisticsService = tokensStatisticsService;
     _log = logFactory.CreateLog(this);
 }
 public ShutdownManager(
     ILogFactory logFactory,
     IEnumerable <IStartStop> stoppables,
     IEnumerable <IStopable> items,
     ITokensStatisticsService tokensStatisticsService)
 {
     _log        = logFactory.CreateLog(this);
     _stoppables = stoppables;
     _items      = items;
     _tokensStatisticsService = tokensStatisticsService;
 }
 public BonusReceivedSubscriber(
     string connectionString,
     string exchangeName,
     string queueName,
     ITokensStatisticsService tokensStatisticsService,
     ILogFactory logFactory)
     : base(connectionString, exchangeName, queueName, logFactory)
 {
     _tokensStatisticsService = tokensStatisticsService;
     _log = logFactory.CreateLog(this);
 }
Esempio n. 6
0
 public GeneralController(ITokensStatisticsService tokensStatisticsService, IMapper mapper)
 {
     _tokensStatisticsService = tokensStatisticsService;
     _mapper = mapper;
 }