public LineupController( LineupContext context, LineupUpdater updater) { _lineupContext = context; _lineupUpdater = updater; }
public LineupUpdater( ILogger <LineupUpdater> log, IOptionsSnapshot <RelayConfiguration> config, LineupContext dbContext, ILineupProvider provider) { _log = log; _lineupContext = dbContext; _provider = provider; _updateTimer = new Timer(TimeSpan.FromSeconds( config.Value.UpdateIntervalSeconds).TotalMilliseconds) { AutoReset = true }; _updateTimer.Elapsed += async(_, __) => await UpdateGuide(); }
public LineupController(LineupContext context, IMapper mapper) { _context = context; _mapper = mapper; }