コード例 #1
0
 public RefreshAccessTokenJob(ILogger <RefreshAccessTokenJob> logger, ITooGoodToGoService tooGoodToGoService, Context context)
 {
     _logger             = logger;
     _tooGoodToGoService = tooGoodToGoService;
     _context            = context;
     _guid = Guid.NewGuid();
 }
コード例 #2
0
 public FavoriteBasketsWatcherJob(ILogger <FavoriteBasketsWatcherJob> logger, IOptions <NotifierOptions> notifierOptions, ITooGoodToGoService tooGoodToGoService, IEmailService emailService, Context context)
 {
     _logger             = logger;
     _notifierOptions    = notifierOptions.Value;
     _tooGoodToGoService = tooGoodToGoService;
     _emailService       = emailService;
     _context            = context;
     _guid = Guid.NewGuid();
 }
コード例 #3
0
 public TooGoodToGoNotifierWorker(ILogger <TooGoodToGoNotifierWorker> logger, IHostApplicationLifetime hostApplicationLifetime, IServiceProvider serviceProvider, IOptions <NotifierOptions> notifierOptions, ITooGoodToGoService tooGoodToGoService, Context context)
 {
     _logger                  = logger;
     _serviceProvider         = serviceProvider;
     _hostApplicationLifetime = hostApplicationLifetime;
     _notifierOptions         = notifierOptions.Value;
     _tooGoodToGoService      = tooGoodToGoService;
     _context                 = context;
 }