skip to Main Content

How do I get this call to httpClient.GetFromJsonAsync() to work?

I have two similar calls on a Blazor page: private async void SelectQuiz() { List<String>? ls = await httpClient.GetFromJsonAsync<List<String>>("api/BgQuizAnswer/GetBgQuizList"); String? txt = await httpClient.GetFromJsonAsync<String> ("api/BgQuizAnswer/GetHello"); The first call works fine while the second one fails. [HttpGet] [Route("GetBgQuizList")] public ActionResult<List<String>> GetBgQuizList()…

VIEW QUESTION

Why do I get error compiling Ruby 3.2 on CentOS 7?

I try to build Ruby 3.2 using ruby-build plugin for rbenv but get some strange compilation error: compiling bignum.c In file included from vm_core.h:164:0, from iseq.h:14, from mini_builtin.c:3, from miniinit.c:51: thread_pthread.h:109:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before…

VIEW QUESTION
Back To Top
Search