public async Task <GetMovieMediaResponse> Handle(GetMovieMediaRequest request, CancellationToken cancellationToken) { var result = await _http.GetMovie(request); result.EnsureSuccessStatusCode(); using (var stream = await result.Content.ReadAsStreamAsync()) { var json = await System.Text.Json.JsonSerializer.DeserializeAsync <Movie>(stream, DefaultJsonSettings.Settings); var response = new GetMovieMediaResponse() { Movie = json }; return(response); } }