AspNetCoreModule
AspNetCoreModule copied to clipboard
Calling shutdown from native to managed should have a timeout (probably shutdown timeout in ASPNETCORE_CONFIG
If the AppPool is shutdown, we can go into the managed application and call ApplicationLifetime.Shutdown(). However, if this call doesn't complete, we should eventually timeout the callback and shutdown ANCM. We could use the same ANCM shutdown timer that is used for out of process.
for inprocess, we will call worker process shutdown. It will be tricky as IIS has shutdown timeout for worker process. this timeout value may be different from ANCM setting.
We should also verify the graceful shutdown scenarios for in-process mode.
cc @shirhatti