Partilhar via


ServiceCollectionExtensions.AddAgentCore Method

Definition

Overloads

Name Description
AddAgentCore(IHostApplicationBuilder)

Adds the core agent services.

  • IConnections, which uses IConfiguration for settings.
  • IChannelServiceClientFactory for ConnectorClient and UserTokenClient creations. Needed for Azure Bot Service and Agent-to-Agent.
  • CloudAdapter, this is the default adapter that works with Azure Bot Service and Activity Protocol Agents.
AddAgentCore<TAdapter>(IHostApplicationBuilder)

AddAgentCore(IHostApplicationBuilder)

Adds the core agent services.

  • IConnections, which uses IConfiguration for settings.
  • IChannelServiceClientFactory for ConnectorClient and UserTokenClient creations. Needed for Azure Bot Service and Agent-to-Agent.
  • CloudAdapter, this is the default adapter that works with Azure Bot Service and Activity Protocol Agents.
public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddAgentCore(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder);
static member AddAgentCore : Microsoft.Extensions.Hosting.IHostApplicationBuilder -> Microsoft.Extensions.Hosting.IHostApplicationBuilder
<Extension()>
Public Function AddAgentCore (builder As IHostApplicationBuilder) As IHostApplicationBuilder

Parameters

Returns

Applies to

AddAgentCore<TAdapter>(IHostApplicationBuilder)

public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddAgentCore<TAdapter>(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder) where TAdapter : Microsoft.Agents.Hosting.AspNetCore.CloudAdapter;
static member AddAgentCore : Microsoft.Extensions.Hosting.IHostApplicationBuilder -> Microsoft.Extensions.Hosting.IHostApplicationBuilder (requires 'Adapter :> Microsoft.Agents.Hosting.AspNetCore.CloudAdapter)
<Extension()>
Public Function AddAgentCore(Of TAdapter As CloudAdapter) (builder As IHostApplicationBuilder) As IHostApplicationBuilder

Type Parameters

TAdapter

Parameters

Returns

Applies to