title: Blazor Startup Error: System.Threading.SynchronizationLockException: Cannot wait on monitors on this runtime
body: <p>I am trying to call an api during the blazor(client side) startup to load language translations into the ILocalizer.</p>
  <p>At the point I try and get the .Result from the get request blazor throws the error in the title.</p>
  <p>This can replicated by calling this method in the program.cs</p>
  <pre><code>  private static void CalApi()
      {
          try
          {
              HttpClient httpClient = new HttpClient();
              httpClient.BaseAddress = new Uri(@&quot;https://dummy.restapiexample.com/api/v1/employees&quot;);
              string path = &quot;ididcontent.json&quot;;
              string response = httpClient.GetStringAsync(path)?.Result;
              Console.WriteLine(response);
          }
          catch(Exception ex)
          {
              Console.WriteLine(&quot;Error getting api response: &quot; + ex);
          }
  
      }
  </code></pre>