Ejemplo 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);
        }
Ejemplo n.º 2
0
 public abstract Task ProcessDeployedApplicationHealthAsync(DeployedApplicationEntity deployedApplication);