title: Blazor: Get `ActionContext`
body: <p>I'm converting the scaffolded ASP.Net Identity pages from Razor Pages to Blazor. I've hit a snag and hope you can help. <code>ChallengeResult.ExecuteResultAsync</code> requires an instance of <code>ActionContext</code>. Is there an instance of this in a Server-Side Blazor App and how can I get to it?</p>
  <h2>EDIT</h2>
  <pre><code>An unhandled exception occurred while processing the request.
  InvalidOperationException: Cannot provide a value for property 'ActionContextAccessor' on type 'OCR.UI.Site.Pages.Account.ExternalLogin'. There is no registered service of type 'Microsoft.AspNetCore.Mvc.Infrastructure.IActionContextAccessor'.
  
  Microsoft.AspNetCore.Components.ComponentFactory+&lt;&gt;c__DisplayClass5_0.&lt;CreateInitializer&gt;g__Initialize|2(IServiceProvider serviceProvider, IComponent component)
  </code></pre>
  <p>No joy.</p>