<t>Il semble donc que la réponse soit "non, vous ne pouvez pas vraiment savoir pourquoi, vous pouvez juste déduire que cela s'est produit."<br/>
<br/>
Je veux dire, vous pouvez ajouter une journalisation Application Insights comme<br/>
<br/>
private void Application_End()<br/>
{<br/>
log.Warn($"The application is shutting down because of '{HostingEnvironment.ShutdownReason}'.");<br/>
<br/>
TelemetryConfiguration.Active.TelemetryChannel.Flush();<br/>
<br/>
// Server Channel flush is async, wait a little while and hope for the best<br/>
Thread.Sleep(TimeSpan.FromSeconds(2)); <br/>
}<br/>
<br/>
```<br/>
<br/>
et vous vous retrouverez avec `"The application is shutting down because of 'Con`</t>