6 references to DownloadAsync
Microsoft.Extensions.AI.Abstractions.Tests (5)
Files\HostedFileClientExtensionsTests.cs (5)
306using var stream = await client.DownloadAsync(hostedFileContent); 315await Assert.ThrowsAsync<ArgumentNullException>("client", () => client.DownloadAsync(content)); 322await Assert.ThrowsAsync<ArgumentNullException>("hostedFile", () => client.DownloadAsync((HostedFileContent)null!)); 339using var stream = await client.DownloadAsync(hostedFileContent); 359using var stream = await client.DownloadAsync(hostedFileContent, explicitOptions);
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIHostedFileClientIntegrationTests.cs (1)
377using var downloadStream = await fileClient.DownloadAsync(firstFile, new HostedFileClientOptions { Scope = containerId });