예제 #1
0
        public override Task ProcessReplicaHealthAsync(ReplicaEntity replica)
        {
            ServiceEventSource.Current.Message($"replica: {replica}, aggregatedHealth: {replica.Health.AggregatedHealthState}");

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

            return(this.completedTask);
        }
예제 #2
0
 public abstract Task ProcessReplicaHealthAsync(ReplicaEntity replica);