AgentHostBuilder.ConfigureShutdown(TimeSpan) Method

Definition

Set the graceful shutdown timeout. This is a convenience shorthand for Configure(o => o.ShutdownTimeout = timeout).

public Azure.AI.AgentServer.Core.AgentHostBuilder ConfigureShutdown(TimeSpan timeout);
member this.ConfigureShutdown : TimeSpan -> Azure.AI.AgentServer.Core.AgentHostBuilder
Public Function ConfigureShutdown (timeout As TimeSpan) As AgentHostBuilder

Parameters

timeout
TimeSpan

The maximum duration to wait for in-flight requests during shutdown.

Returns

This builder for chaining.

Applies to