コード例 #1
0
ファイル: Index.cshtml.cs プロジェクト: eXceediDeaL/StarOJ
        public async Task OnGetAsync()
        {
            HttpClient     httpclient = clientFactory.CreateClient();
            ProblemsClient client     = new ProblemsClient(httpclient);
            IList <Core.Problems.ProblemMetadata> ms = await client.GetAllAsync();

            List <ProblemModel> ss = new List <ProblemModel>();

            foreach (Core.Problems.ProblemMetadata v in ms)
            {
                ss.Add(await ProblemModel.GetAsync(v, httpclient, false, false));
            }
            Problems = ss;
        }