Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Found(404)。 (Exception from HRESULT: 0x80190194) #100

Open
songshizhao opened this issue Apr 15, 2022 · 0 comments
Open

Not Found(404)。 (Exception from HRESULT: 0x80190194) #100

songshizhao opened this issue Apr 15, 2022 · 0 comments

Comments

@songshizhao
Copy link

    public static async Task<LeaderboardResult> GetLeaderboard(string leaderBoardName)
    {
        if (!is_online) return null;

        try
        {
            string id = xboxUser.XboxUserId;//xboxUser.WebAccountId;//

            var r = await leaderboardService.GetLeaderboardWithSkipToUserAsync(
                context.AppConfig.ServiceConfigurationId,
                leaderBoardName, id, 1);

#if DEBUG
foreach (LeaderboardRow row in r.Rows)
{
Debug.WriteLine($"Position:{row.Percentile} Rank:{row.Rank} | Gamertag: {row.Gamertag} | {row.Values[0]}");
}

#endif

            return r;
        }
        catch (Exception ex)
        {

            Debug.WriteLine(ex.Message);
        }

        return null;

    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant