public TvMazeClient(HttpClient httpClient, IOptions <TvMazeConfig> tvMazeConfig, IJsonConverterWrapper jsonConverter, IUrlFormatService urlFormatService) { _tvMazeConfig = tvMazeConfig.Value; _httpClient = httpClient; _jsonConverter = jsonConverter; _urlFormatService = urlFormatService; _httpClient.BaseAddress = new Uri(_tvMazeConfig.BaseAddress); }
public ExceptionHandlingMiddleware(RequestDelegate next, IJsonConverterWrapper jsonConverterWrapper, ILogger <ExceptionHandlingMiddleware> logger) { _next = next; _jsonConverterWrapper = jsonConverterWrapper; _logger = logger; }