示例#1
0
 public LineupController(
     LineupContext context,
     LineupUpdater updater)
 {
     _lineupContext = context;
     _lineupUpdater = updater;
 }
示例#2
0
        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();
        }
示例#3
0
 public LineupController(LineupContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }