DelegatingHostedFileClient Klass

Definition

En delegeringsfilklient som omsluter en inre IHostedFileClient.

public ref class DelegatingHostedFileClient : IDisposable, Microsoft::Extensions::AI::IHostedFileClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public class DelegatingHostedFileClient : IDisposable, Microsoft.Extensions.AI.IHostedFileClient
public class DelegatingHostedFileClient : IDisposable, Microsoft.Extensions.AI.IHostedFileClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type DelegatingHostedFileClient = class
    interface IHostedFileClient
    interface IDisposable
type DelegatingHostedFileClient = class
    interface IHostedFileClient
    interface IDisposable
Public Class DelegatingHostedFileClient
Implements IDisposable, IHostedFileClient
Arv
DelegatingHostedFileClient
Härledda
Attribut
Implementeringar

Kommentarer

Den här klassen ger en bas för att skapa filklienter som ändrar eller förbättrar beteendet för en annan IHostedFileClient. Som standard delegerar alla metoder till den inre klienten.

Konstruktorer

Name Description
DelegatingHostedFileClient(IHostedFileClient)

Initierar en ny instans av DelegatingHostedFileClient klassen.

Egenskaper

Name Description
InnerClient

Hämtar den inre IHostedFileClient.

Metoder

Name Description
DeleteAsync(String, HostedFileClientOptions, CancellationToken)

Tar bort en fil från AI-tjänsten.

Dispose()

Utför programdefinierade uppgifter som är associerade med att frigöra, frigöra eller återställa ohanterade resurser.

Dispose(Boolean)

Bortser från instansen.

DownloadAsync(String, HostedFileClientOptions, CancellationToken)

Laddar ned en fil från AI-tjänsten.

GetFileInfoAsync(String, HostedFileClientOptions, CancellationToken)

Hämtar metadata om en fil.

GetService(Type, Object)

Frågar efter IHostedFileClient ett objekt av den angivna typen serviceType.

ListFilesAsync(HostedFileClientOptions, CancellationToken)

Visar en lista över filer som är tillgängliga för den här klienten.

UploadAsync(Stream, String, String, HostedFileClientOptions, CancellationToken)

Laddar upp en fil till AI-tjänsten.

Tilläggsmetoder

Name Description
AsBuilder(IHostedFileClient)

Skapar en ny HostedFileClientBuilder som använder innerClient som sin inre klient.

DownloadAsDataContentAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Laddar ned en fil och returnerar dess innehåll som en buffrad DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Laddar ned en fil som refereras av en HostedFileContent.

DownloadToAsync(IHostedFileClient, String, String, HostedFileClientOptions, CancellationToken)

Laddar ned en fil och sparar den i en lokal sökväg.

GetMetadata(IHostedFileClient)

HostedFileClientMetadata Hämtar för den här klienten.

GetRequiredService(IHostedFileClient, Type, Object)

Frågar efter IHostedFileClient ett objekt av den angivna typen serviceType och utlöser ett undantag om ett inte är tillgängligt.

GetRequiredService<TService>(IHostedFileClient, Object)

Frågar efter IHostedFileClient ett objekt av typen TService och utlöser ett undantag om ett inte är tillgängligt.

GetService<TService>(IHostedFileClient, Object)

Hämtar en tjänst av den angivna typen från filklienten.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Laddar upp innehåll från en DataContent.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Laddar upp en fil från en lokal filsökväg.

Gäller för