Quotidien Shaarli
January 18, 2024
var response = await client.SendAsync(request);
string s = await response.Content.ReadAsStringAsync();
if (response.IsSuccessStatusCode)
{
using var responseStream = await response.Content.ReadAsStreamAsync();
branches = await JsonSerializer.DeserializeAsync<IEnumerable<GitHubBranch>>(responseStream);
}
else
{
getBranchesError = true;
}
I am not the biggest fan of AutoMapper. It starts with good intentions but often ends up being a big mess. I have seen it used in many projects, and the configuration of the mappings is often scattered all over the place, and or they are huge!
Les ingénieurs du chaos - Giuliano da Empoli
How the World Really Works: The Science Behind How We Got Here and Where We're Going - Vaclav Smil