0

当服务启动并在必要时报告健康错误时,我正在做一些初步检查:

HealthInformation healthInformation = new HealthInformation("Source", "Some error", HealthState.Error);
context.ReportPartitionHealth(healthInformation);

如果服务处于错误状态,停止服务的最佳方法是什么?

4

0 回答 0