public Api(IGameScheduleRepository repo) { Get("api/fullgameschedule", async args => { return(await repo.GetAllGamesAsync()); }); Get("api/todaysgameschedule", args => { return(repo.GetTodaysGamesAsync().ToString()); }); }
public DailyJobScheduler(IGameScheduleRepository gameRepository, IMessageBusSetup messageBusSetup, ILogger logger) { _gameRepository = gameRepository; _messageBusSetup = messageBusSetup; _logger = logger; }