Esempio n. 1
0
        public override Task ProcessDeployedApplicationHealthAsync(DeployedApplicationEntity deployedApplication)
        {
            ServiceEventSource.Current.Message($"deployed application: {deployedApplication}, aggregatedHealth: {deployedApplication.Health.AggregatedHealthState}");

            if (deployedApplication.IsHealthEventReportingEnabled(
                    deployedApplication.ApplicationName,
                    deployedApplication.Health.AggregatedHealthState))
            {
                deployedApplication.Health.HealthEvents
                .ForEachHealthEvent(healthEvent =>
                {
                    ServiceEventSource.Current.Message($"deployed application: {deployedApplication}, health: {healthEvent}");
                });
            }

            return(this.completedTask);
        }
Esempio n. 2
0
 public abstract Task ProcessDeployedApplicationHealthAsync(DeployedApplicationEntity deployedApplication);