public ImageReadingService(
     INetworkService networkService,
     ILogger <ImageReadingService> logger,
     IDiskCacheService diskCacheService)
 {
     this.networkService   = networkService;
     this.logger           = logger;
     this.diskCacheService = diskCacheService;
 }
        /// <summary>
        /// Creates a <see cref="ContentRetrieverService"/>.
        /// </summary>
        /// <param name="httpClientService">The service that will handle HTTP requests.</param>
        /// <param name="fileService">The service that will handle file operations.</param>
        /// <param name="diskCacheService">The service that will handle the disk cache.</param>
        /// <param name="loggerFactory">The factory for <see cref="ILogger"/>s.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="httpClientService"/> is <c>null</c>.</exception>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="fileService"/> is <c>null</c>.</exception>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="diskCacheService"/> is <c>null</c>.</exception>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="loggerFactory"/> is <c>null</c>.</exception>
        public ContentRetrieverService(IHttpClientService httpClientService,
                                       IFileService fileService,
                                       IDiskCacheService diskCacheService,
                                       ILoggerFactory loggerFactory)
        {
            _fileService       = fileService ?? throw new ArgumentNullException(nameof(fileService));
            _httpClientService = httpClientService ?? throw new ArgumentNullException(nameof(httpClientService));
            _diskCacheService  = diskCacheService ?? throw new ArgumentNullException(nameof(diskCacheService));

            if (loggerFactory == null)
            {
                throw new ArgumentNullException(nameof(loggerFactory));
            }

            _logger = loggerFactory?.CreateLogger(typeof(ContentRetrieverService));
            _warningLoggingEnabled = _logger.IsEnabled(LogLevel.Warning);
        }
 public RestService(IJsonService jsonService, IDiskCacheService diskCacheService)
 {
     BaseUrl           = Constants.HWOrderFood_BASE_URL;
     _jsonService      = jsonService;
     _diskCacheService = diskCacheService;
 }