public WebhookSenderService(IConfiguration config, IProductArchive archive, ICustomWebClient webClient)
        {
            _productsToSend = new Queue <Product>();
            _config         = config;
            _archive        = archive;
            _webClient      = webClient;

            _timer          = new Timer(_config.GetValue <int>("SendingInterval"));
            _timer.Elapsed += SendingLoop;
        }
Пример #2
0
 public Scraper(IConfiguration config, ICustomWebClient web)
 {
     _config = config;
     _web    = web;
     _url    = config.GetValue <string>("WebsiteUrl");
 }
 public PlayersController(ICustomWebClient customWebClient)
 {
     _customWebClient = customWebClient;
 }
 public NbaStatsController(ICustomWebClient customWebClient, IMemoryCache cache)
 {
     _customWebClient = customWebClient;
     this.cache       = cache;
 }
Пример #5
0
 public ImageHandler()
 {
     _restService     = new RestService();
     WebClientFactory = new CustomWebClientFactory();
     CustomWebClient  = WebClientFactory.Create();
 }
Пример #6
0
 public RecognitionUtils()
 {
     WebClientFactory = new CustomWebClientFactory();
     CustomWebClient  = WebClientFactory.Create();
 }