/// <summary> /// Sends a health report in using a service fabric client for immediate transmission (no batching) /// </summary> /// <param name="report">The health report to send</param> /// <param name="batchDelay">The maximum amount of time to wait before sending in an effort to batch transmission</param> /// <param name="timeout">The time to wait before considering the send as timed out</param> /// <param name="retryInterval">The amount of time to wait before sending the report again on failure</param> public static void SubmitHealthReport(HealthReport report, TimeSpan? batchDelay = null, TimeSpan? timeout = null, TimeSpan? retryInterval = null) { var client = new FabricClient(new FabricClientSettings { HealthReportSendInterval = batchDelay ?? TimeSpan.FromSeconds(0), HealthOperationTimeout = timeout ?? TimeSpan.FromSeconds(15), HealthReportRetrySendInterval = retryInterval ?? TimeSpan.FromSeconds(50) }); client.HealthManager.ReportHealth(report); }