Language

FileDownloader Class

Definition

Opens byte streams for inbound files, keyed on conversation scope so every scope's receive path extends this one place rather than branching in callers.

public sealed class FileDownloader
type FileDownloader = class
Public NotInheritable Class FileDownloader
Inheritance
FileDownloader

Remarks

Initializes a new instance of the FileDownloader class.

Constructors

Name Description
FileDownloader(HttpClient, ILogger<FileDownloader>)

Opens byte streams for inbound files, keyed on conversation scope so every scope's receive path extends this one place rather than branching in callers.

Methods

Name Description
OpenFileStreamAsync(ConversationType, Uri, String, Boolean, CancellationToken)

Open a byte stream for an inbound file. Only personal is implemented; other scopes throw FileScopeNotSupportedException until their Graph receive path lands.

OpenFileStreamAsync(ConversationType, Uri, Uri, String, Boolean, GraphCredential, CancellationToken)

Open a byte stream for an inbound file, resolving it through Microsoft Graph when the pre-authorized download URL is absent.

Only personal is implemented; other scopes throw FileScopeNotSupportedException until their Graph receive path lands.

Applies to