public IContentBuilder AddLogger <TLogger>(Func <TLogger> factory) where TLogger : IContentLogger { if (factory is null) { throw new ArgumentNullException(nameof(factory)); } ContentLogger = factory(); return(this); }
public ContentUpdater( IContentSource contentSource, TimeSpan startupDelay, TimeSpan interval, IContentLogger logger, IContentClassGenerator classGenerator ) { _contentSource = contentSource; _startupDelay = startupDelay; _interval = interval; _logger = logger; _classGenerator = classGenerator; }
public ApiContentSource(Func <HttpClient> httpClientFactory, ApiContentSourceOptions options, IContentLogger logger) { _httpClientFactory = httpClientFactory; _options = options ?? throw new ArgumentNullException(nameof(options)); _logger = logger; }
public ProtoFileContentSource(string location, IContentLogger logger) { _location = location; _logger = logger; }