ภาษา

AgentHostExtensions.AddAgentFileDownloader Method

Definition

Registers an IInputFileDownloader instance for use by AgentApplicationOptions. Can be called multiple times to add additional downloaders.

public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddAgentFileDownloader(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, Microsoft.Agents.Builder.App.IInputFileDownloader downloader);
static member AddAgentFileDownloader : Microsoft.Extensions.Hosting.IHostApplicationBuilder * Microsoft.Agents.Builder.App.IInputFileDownloader -> Microsoft.Extensions.Hosting.IHostApplicationBuilder
<Extension()>
Public Function AddAgentFileDownloader (builder As IHostApplicationBuilder, downloader As IInputFileDownloader) As IHostApplicationBuilder

Parameters

builder
IHostApplicationBuilder

The host application builder.

downloader
IInputFileDownloader

The file downloader instance to add.

Returns

The same builder for chaining.

Remarks

Downloaders are resolved as IList<IInputFileDownloader> from DI and are used by AgentApplication to process inbound file attachments.

Applies to