Aracılığıyla paylaş


DelegatingHostedFileClient Sınıf

Tanım

bir iç IHostedFileClientsarmalayan bir temsilci dosya istemcisi.

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
Devralma
DelegatingHostedFileClient
Türetilmiş
Öznitelikler
Uygulamalar

Açıklamalar

Bu sınıf, başka IHostedFileClientbir öğesinin davranışını değiştiren veya geliştiren dosya istemcileri oluşturmak için bir temel sağlar. Varsayılan olarak, tüm yöntemler iç istemciye temsilci seçer.

Oluşturucular

Name Description
DelegatingHostedFileClient(IHostedFileClient)

DelegatingHostedFileClient sınıfının yeni bir örneğini başlatır.

Özellikler

Name Description
InnerClient

öğesinin iç IHostedFileClientöğesini alır.

Yöntemler

Name Description
DeleteAsync(String, HostedFileClientOptions, CancellationToken)

Yapay zeka hizmetinden bir dosyayı siler.

Dispose()

Yönetilmeyen kaynakları serbest bırakma, serbest bırakma veya sıfırlama ile ilişkili uygulama tanımlı görevleri gerçekleştirir.

Dispose(Boolean)

Örneği atar.

DownloadAsync(String, HostedFileClientOptions, CancellationToken)

Yapay zeka hizmetinden bir dosya indirir.

GetFileInfoAsync(String, HostedFileClientOptions, CancellationToken)

Dosya hakkındaki meta verileri alır.

GetService(Type, Object)

IHostedFileClient belirtilen türde serviceTypebir nesnesi ister.

ListFilesAsync(HostedFileClientOptions, CancellationToken)

Bu istemci tarafından erişilebilen dosyaları listeler.

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

Yapay zeka hizmetine bir dosya yükler.

Uzantı Metotları

Name Description
AsBuilder(IHostedFileClient)

İç istemcisi olarak kullanarak HostedFileClientBuilder yeni innerClient bir oluşturur.

DownloadAsDataContentAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Bir dosyayı indirir ve içeriğini arabelleğe alınan DataContentolarak döndürür.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

tarafından başvuruda bulunılan bir HostedFileContentdosyayı indirir.

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

Bir dosyayı indirir ve yerel bir yola kaydeder.

GetMetadata(IHostedFileClient)

Bu istemci için öğesini HostedFileClientMetadata alır.

GetRequiredService(IHostedFileClient, Type, Object)

IHostedFileClient belirtilen türde serviceType bir nesne ister ve kullanılamıyorsa bir özel durum oluşturur.

GetRequiredService<TService>(IHostedFileClient, Object)

IHostedFileClient türünde TService bir nesne ister ve kullanılamıyorsa bir özel durum oluşturur.

GetService<TService>(IHostedFileClient, Object)

Dosya istemcisinden belirtilen türde bir hizmet alır.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

bir 'den DataContentiçerik yükler.

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Yerel bir dosya yolundan dosya yükler.

Şunlara uygulanır