Exemple #1
0
        public Api(IGameScheduleRepository repo)
        {
            Get("api/fullgameschedule", async args =>
            {
                return(await repo.GetAllGamesAsync());
            });

            Get("api/todaysgameschedule", args =>
            {
                return(repo.GetTodaysGamesAsync().ToString());
            });
        }
Exemple #2
0
 public DailyJobScheduler(IGameScheduleRepository gameRepository, IMessageBusSetup messageBusSetup, ILogger logger)
 {
     _gameRepository  = gameRepository;
     _messageBusSetup = messageBusSetup;
     _logger          = logger;
 }