Share via


AgentRunContextMiddlewareExtensions.UseAgentRunContext Method

Definition

Adds the agent run context middleware to the application pipeline.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseAgentRunContext(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, System.Collections.Generic.IEnumerable<object>? agentTools = default);
static member UseAgentRunContext : Microsoft.AspNetCore.Builder.IApplicationBuilder * seq<obj> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseAgentRunContext (app As IApplicationBuilder, Optional agentTools As IEnumerable(Of Object) = Nothing) As IApplicationBuilder

Parameters

app
IApplicationBuilder

The application builder.

agentTools
IEnumerable<Object>

Optional collection of agent tools to include in the context.

Returns

The application builder for chaining.

Applies to