ClientServiceCollectionExtensions.AddAgentHost 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.
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
- builder
- IHostApplicationBuilder
- 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
- builder
- IHostApplicationBuilder
- storage
- IStorage
Used for IAgentHost. If null, the registered IStorage will be used.