AgentRunContextMiddlewareExtensions.UseAgentRunContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The application builder.
- agentTools
- IEnumerable<Object>
Optional collection of agent tools to include in the context.
Returns
The application builder for chaining.