I signed up for the Xbox Creators Program, and I'm trying to get a leaderboard. However I couldn't find any examples that use the C# API. This page shows how to do it in C++.
Here is my code. It won't build because it says XboxLiveContext doesn't have a LeaderboardService property
. How do I create a leaderboardservice in C#?
XboxLiveUser user = new XboxLiveUser();
SignInResult x = await user.SignInAsync();
XboxLiveContext context = new XboxLiveContext(user);
LeaderboardResult result = await context.LeaderboardService.GetLeaderboardAsync("scores1", new LeaderboardQuery());