Debugging live-only bug.

This commit is contained in:
2024-02-09 09:22:20 -06:00
parent 2880acb585
commit 46c8f1c3af
5 changed files with 23 additions and 34 deletions

View File

@@ -19,7 +19,6 @@ namespace Shogi.UI.Pages.Home.Api
public ShogiApi(IHttpClientFactory clientFactory, AccountState accountState)
{
Console.WriteLine("ShogiApi constructor");
this.serializerOptions = new JsonSerializerOptions(JsonSerializerDefaults.Web);
this.accountState = accountState;
this.guestHttpClient = clientFactory.CreateClient(GuestClientName);
@@ -35,7 +34,7 @@ namespace Shogi.UI.Pages.Home.Api
public async Task GuestLogout()
{
var response = await this.guestHttpClient.PutAsync(RelativeUri("User/TestGuestLogout"), null);
var response = await this.guestHttpClient.PutAsync(RelativeUri("User/GuestLogout"), null);
response.EnsureSuccessStatusCode();
}
@@ -99,6 +98,6 @@ namespace Shogi.UI.Pages.Home.Api
return HttpClient.PatchAsync(RelativeUri($"Sessions/{name}/Join"), null);
}
private static Uri RelativeUri(string path) => new Uri(path, UriKind.Relative);
private static Uri RelativeUri(string path) => new(path, UriKind.Relative);
}
}