Exemplo n.º 1
0
        public override Task ProcessDeployedServicePackageHealthAsync(DeployedServicePackageEntity deployedServicePackage)
        {
            ServiceEventSource.Current.Message($"deployed service package: {deployedServicePackage}, aggregatedHealth: {deployedServicePackage.Health.AggregatedHealthState}");

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

            return(this.completedTask);
        }
Exemplo n.º 2
0
 public abstract Task ProcessDeployedServicePackageHealthAsync(DeployedServicePackageEntity deployedServicePackage);