Esempio n. 1
0
        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));
        }