Skip to content

Commit 5f40062

Browse files
committed
Mark sealed
1 parent c6fff79 commit 5f40062

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebJobs.Script.WebHost/Diagnostics/HealthChecks/HealthCheckWaitMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010
namespace Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.HealthChecks
1111
{
12-
public class HealthCheckWaitMiddleware(RequestDelegate next, IScriptHostManager manager)
12+
public sealed class HealthCheckWaitMiddleware(RequestDelegate next, IScriptHostManager manager)
1313
{
1414
private readonly RequestDelegate _next = next ?? throw new ArgumentNullException(nameof(next));
1515
private readonly IScriptHostManager _manager = manager ?? throw new ArgumentNullException(nameof(manager));
1616

1717
public async Task InvokeAsync(HttpContext context)
1818
{
19-
ArgumentNullException.ThrowIfNull(next);
19+
ArgumentNullException.ThrowIfNull(context);
2020

2121
// If specified, the ?wait={seconds} query param will wait for an
2222
// active script host for that duration. This is to avoid excessive polling

0 commit comments

Comments
 (0)