コード例 #1
0
        public override Task ProcessPartitionHealthAsync(PartitionEntity partition)
        {
            ServiceEventSource.Current.Message($"partition: {partition}, aggregatedHealth: {partition.Health.AggregatedHealthState}");

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

            return(this.completedTask);
        }
コード例 #2
0
 public abstract Task ProcessPartitionHealthAsync(PartitionEntity partition);