public SeasonParticipantHarvester(ApiSettings settings, ILogger <SeasonParticipantHarvester> logger, IHarvestRequestManager harvestrequestmanager, IHttpRequestManager httpmanager) : base(harvestrequestmanager) { _logger = logger; _httpmanager = httpmanager; _participantsapiroot = settings.SeasonsDbApiRootKey; _registrationsApiPath = settings.ClubSeasonRegistrationsApiPath; _apisettings = settings; }
public DataHarvest(IHarvestRequestManager reqmanager, int?maxthreads = null) { _requestmanager = reqmanager; _po = new ParallelOptions(); _po.MaxDegreeOfParallelism = maxthreads.HasValue ? maxthreads.Value : Environment.ProcessorCount; }