private void OnHostShutdownTriggered() { log.Info("Hosting shutdown has been initiated. Timeout = {HostingShutdownTimeout}.", totalTimeout); if (sendAnnotation) { AnnotationsHelper.ReportStopping(identity, instanceMetrics); } hostShutdownBudget.Start(); ShutdownBeaconAsync().ContinueWith(_ => appShutdown.Initiate(hostShutdownBudget.Remaining)); }