You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,4 +40,21 @@ public sealed class GrpcHealthChecksOptions
39
40
/// published by <see cref="IHealthCheckPublisher"/> are returned.
40
41
/// </remarks>
41
42
publicboolUseHealthChecksCache{get;set;}
43
+
44
+
/// <summary>
45
+
/// Gets or sets a value indicating whether to suppress completing <c>Watch</c> health check calls when the application begins shutting down.
46
+
/// The default value is <c>false</c>.
47
+
/// </summary>
48
+
/// <remarks>
49
+
/// <para>
50
+
/// When <c>false</c>, health checks <c>Watch</c> calls are completed with a status of NotServing when the server application begins shutting down.
51
+
/// Shutdown is indicated by the <see cref="IHostApplicationLifetime.ApplicationStopping"/> token being raised and causes <c>Watch</c> to complete.
52
+
/// When <c>true</c>, health checks <c>Watch</c> calls are left running. Running calls will be eventually be forcefully aborted when the server finishes shutting down.
53
+
/// </para>
54
+
/// <para>
55
+
/// Completing the <c>Watch</c> call allows the server to gracefully exit. If <c>Watch</c> calls aren't shutdown then the server runs until
56
+
/// <see cref="HostOptions.ShutdownTimeout"/> is exceeded and the server forcefully aborts remaining active requests.
0 commit comments