Upgrade to .net 5
Address breaking changes from Shogi.API nuget
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Websockets.Managers.ClientActionHandlers
|
||||
{
|
||||
logger.LogInformation("Socket Request \n{0}\n", new[] { json });
|
||||
var request = JsonConvert.DeserializeObject<JoinByCode>(json);
|
||||
var joinGameResponse = await repository.PostJoinByCode(new PostJoinByCode
|
||||
var joinGameResponse = await repository.PostJoinPrivateSession(new PostJoinPrivateSession
|
||||
{
|
||||
PlayerName = userName,
|
||||
JoinCode = request.JoinCode
|
||||
@@ -38,7 +38,7 @@ namespace Websockets.Managers.ClientActionHandlers
|
||||
|
||||
if (joinGameResponse.JoinSucceeded)
|
||||
{
|
||||
var gameName = (await repository.GetGame(joinGameResponse.GameName)).GameName;
|
||||
var gameName = (await repository.GetGame(joinGameResponse.SessionName)).Session.Name;
|
||||
|
||||
// Other members of the game see a regular JoinGame occur.
|
||||
var response = new JoinGameResponse(ClientAction.JoinGame)
|
||||
|
||||
Reference in New Issue
Block a user