Table of Contents

Class AttachmentDownloader

Namespace
Microsoft.Agents.Builder.App
Assembly
Microsoft.Agents.Builder.dll
public class AttachmentDownloader : IInputFileDownloader
Inheritance
AttachmentDownloader
Implements
Inherited Members

Constructors

AttachmentDownloader(IHttpClientFactory)

public AttachmentDownloader(IHttpClientFactory httpClientFactory)

Parameters

httpClientFactory IHttpClientFactory

Methods

DownloadFilesAsync(ITurnContext, ITurnState, CancellationToken)

Download any files relative to the current user's input.

public Task<IList<InputFile>> DownloadFilesAsync(ITurnContext turnContext, ITurnState turnState, CancellationToken cancellationToken = default)

Parameters

turnContext ITurnContext

The turn context.

turnState ITurnState

The turn state.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IList<InputFile>>

A list of input files