public AutoReloadingResolver(IOptions <AutoReloadingResolverConfig> config)
 {
     _config      = config?.Value ?? throw new ArgumentNullException(nameof(config));
     _reloadtimer = new Timer(Reload);
 }
Exemple #2
0
 public AutoReloadingResolver(Func <IEnumerable <IIP2CountryDataSource>, IIP2CountryBatchResolver> resolverFactory, IOptions <AutoReloadingResolverConfig> config)
 {
     _resolverfactory = resolverFactory ?? throw new ArgumentNullException(nameof(resolverFactory));
     _config          = config?.Value ?? throw new ArgumentNullException(nameof(config));
     _reloadtimer     = new Timer(Reload);
 }