예제 #1
0
 public ScrapeJob(IOptions <BetOptions> options,
                  IServiceProvider provider,
                  ILogger <ScrapeJob> logger,
                  IHubContext <FixturesFeed> hubContext)
 {
     _hubContext = hubContext;
     _options    = options.Value;
     _provider   = provider;
     _logger     = logger;
 }
예제 #2
0
 public BetService(IOptions <BetOptions> options,
                   BettyContext context,
                   IHttpContextAccessor httpContext,
                   IMailerService mail,
                   ILogger <BetService> logger,
                   IHubContext <FixturesFeed> hubContext)
 {
     _options     = options.Value;
     _context     = context;
     _httpContext = httpContext.HttpContext;
     _mail        = mail;
     _logger      = logger;
     _hubContext  = hubContext;
 }