public PublicSuffixDataStore(IPublicSuffixConfig config) { var fileSystem = new FileSystem(); var dataSource = new InMemoryPublicSuffixDataSource(config) { Upstream = new FileSystemPublicSuffixDataSource(config, fileSystem) { Upstream = new InternetPublicSuffixDataSource(config, new HttpClientFactory()) } }; SetDataSource(dataSource); }
protected PublicSuffixDataSource(IPublicSuffixConfig config) { _config = config; }
public FileSystemPublicSuffixDataSource(IPublicSuffixConfig config, IFileSystem fileSystem) : base(config) { _fileSystem = fileSystem; _config = config; }
public InternetPublicSuffixDataSource(IPublicSuffixConfig config, IHttpClientFactory httpFactory) : base(config) { _httpFactory = httpFactory; _config = config; }
public InMemoryPublicSuffixDataSource(IPublicSuffixConfig config) : base(config) { }