Upgrade to .net 8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user