public static async Task MainAsync(IServiceProvider serviceProvider) { IPlatformAccessor accessor = serviceProvider.GetRequiredService <SteamAccessor>(); UserData user = serviceProvider.GetRequiredService <UserData>(); Console.WriteLine($"Loading game list for {user.Username}..."); GameList games = await accessor.GetGameList(); games.ForEach(g => Console.WriteLine(g.Name)); }