ASP.NET Core 2.2 Site Warmup : <p>I've migrated a .NET Framework 4.6 WebApi to .NETCore 2.2 and am having trouble getting the IIS ApplicationInitialization module to call my endpoints on a startup/slot swap/scale out.  </p>

<p>I added a Web.Config like:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;configuration&gt;
  &lt;location path="." inheritInChildApplications="false"&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /&gt;
      &lt;/handlers&gt;
      &lt;aspNetCore processPath="dotnet" arguments=".\FR911.Api.Core.dll" stdoutLogEnabled="false" stdoutLogFile="\\?\%home%\LogFiles\stdout" hostingModel="inprocess" /&gt;

      &lt;applicationInitialization doAppInitAfterRestart="true"&gt;
        &lt;add initializationPage="api/Warmup&gt;
        &lt;add initializationPage="/" /&gt;
      &lt;/applicationInitialization&gt;
    &lt;/system.webServer&gt;
  &lt;/location&gt;
&lt;/configuration&gt;

</code></pre>

<p>But if I keep the default hosting model of "inprocess" my warmup never gets called.  If I change to "outofprocess" hosting, my warmup does get called before the swap is completed.  </p>

<p>I think the issue below is likely related:</p>

<p><a href="https://github.com/aspnet/AspNetCore/issues/8057" rel="noreferrer">https://github.com/aspnet/AspNetCore/issues/8057</a></p>

<p>I'm not looking to just manually ping or otherwise hit my endpoint because I want the existing feature in the module that IIS is Azure won't actually swap the endpoints until the warmup requests have finished (thus initing EFCore etc.)</p>

<p>Has anyone had any luck getting this to work with the inprocess hosting model?</p>
