Upgrade to .net 8

This commit is contained in:
2024-01-29 13:00:20 -06:00
parent 08c11b3c0e
commit 2880acb585
12 changed files with 58 additions and 63 deletions

View File

@@ -35,7 +35,7 @@ namespace Shogi.UI.Pages.Home.Api
public async Task GuestLogout()
{
var response = await this.guestHttpClient.PutAsync(new Uri("User/GuestLogout", UriKind.Relative), null);
var response = await this.guestHttpClient.PutAsync(RelativeUri("User/TestGuestLogout"), null);
response.EnsureSuccessStatusCode();
}
@@ -74,7 +74,7 @@ namespace Shogi.UI.Pages.Home.Api
var content = await response.Content.ReadAsStringAsync();
if (!string.IsNullOrEmpty(content))
{
return await response.Content.ReadFromJsonAsync<CreateTokenResponse>(serializerOptions);
return JsonSerializer.Deserialize<CreateTokenResponse>(content, serializerOptions);
}
}
return null;