Freigeben über


ClientServiceCollectionExtensions.AddAgentHost Method

Definition

Overloads

AddAgentHost(IHostApplicationBuilder, IStorage)

Adds multi-Agent functionality for use with AgentApplication.

AddAgentHost<THandler>(IHostApplicationBuilder, IStorage)

Adds multi-Agent functionality for use with the specified IChannelApiHanlder.

AddAgentHost(IHostApplicationBuilder, IStorage)

Adds multi-Agent functionality for use with AgentApplication.

public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddAgentHost(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, Microsoft.Agents.Storage.IStorage storage = default);
static member AddAgentHost : Microsoft.Extensions.Hosting.IHostApplicationBuilder * Microsoft.Agents.Storage.IStorage -> Microsoft.Extensions.Hosting.IHostApplicationBuilder
<Extension()>
Public Function AddAgentHost (builder As IHostApplicationBuilder, Optional storage As IStorage = Nothing) As IHostApplicationBuilder

Parameters

storage
IStorage

Used for IAgentHost. If null, the registered IStorage will be used.

Returns

Applies to

AddAgentHost<THandler>(IHostApplicationBuilder, IStorage)

Adds multi-Agent functionality for use with the specified IChannelApiHanlder.

public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddAgentHost<THandler>(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, Microsoft.Agents.Storage.IStorage storage = default) where THandler : class, Microsoft.Agents.Builder.IChannelApiHandler;
static member AddAgentHost : Microsoft.Extensions.Hosting.IHostApplicationBuilder * Microsoft.Agents.Storage.IStorage -> Microsoft.Extensions.Hosting.IHostApplicationBuilder (requires 'Handler : null and 'Handler :> Microsoft.Agents.Builder.IChannelApiHandler)
<Extension()>
Public Function AddAgentHost(Of THandler As {Class, IChannelApiHandler}) (builder As IHostApplicationBuilder, Optional storage As IStorage = Nothing) As IHostApplicationBuilder

Type Parameters

THandler

Parameters

storage
IStorage

Used for IAgentHost. If null, the registered IStorage will be used.

Returns

Applies to