Share via


IInputFileDownloader.DownloadFilesAsync Method

Definition

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

public System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Agents.Builder.App.InputFile>> DownloadFilesAsync(Microsoft.Agents.Builder.ITurnContext turnContext, Microsoft.Agents.Builder.State.ITurnState turnState, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadFilesAsync : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.Builder.State.ITurnState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Agents.Builder.App.InputFile>>
Public Function DownloadFilesAsync (turnContext As ITurnContext, turnState As ITurnState, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of InputFile))

Parameters

turnContext
ITurnContext

The turn context.

turnState
ITurnState

The turn state.

cancellationToken
CancellationToken

The cancellation token.

Returns

A list of input files

Applies to