public async Task <IActionResult> Logout([FromBody] Logout.Request req) { // TODO: evotool.Logout処理 //var toolAccount = new KvsModels.ToolAccount(SelfHost.account); //await toolAccount.DeleteAsync(); var res = new Logout.Response(); return(Ok(res)); }
public async Task <IActionResult> Logout([FromBody] Logout.Request req) { if (SelfHost.hostType == HostType.Player) { Logger.Logging( new LogObj().AddChild(new LogModels.Logout { PlayerId = SelfHost.playerInfo.playerId, Date = DateTime.UtcNow, RemoteIp = HttpContext.Connection.RemoteIpAddress.ToString(), }) ); } await new Session(SelfHost.sessionId).DeleteAsync(); await new ConnectionQueue(SelfHost.sessionId).DeleteAsync(); var res = new Logout.Response(); return(Ok(res)); }