OpenTelemetryHostedFileClient Classe

Definição

Representa um cliente de ficheiros alojados que delega e implementa rastreamento e métricas compatíveis com OpenTelemetry para operações de ficheiros.

public ref class OpenTelemetryHostedFileClient sealed : Microsoft::Extensions::AI::DelegatingHostedFileClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class OpenTelemetryHostedFileClient : Microsoft.Extensions.AI.DelegatingHostedFileClient
public sealed class OpenTelemetryHostedFileClient : Microsoft.Extensions.AI.DelegatingHostedFileClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type OpenTelemetryHostedFileClient = class
    inherit DelegatingHostedFileClient
type OpenTelemetryHostedFileClient = class
    inherit DelegatingHostedFileClient
Public NotInheritable Class OpenTelemetryHostedFileClient
Inherits DelegatingHostedFileClient
Herança
OpenTelemetryHostedFileClient
Atributos

Observações

Como atualmente não existe uma Convenção Semântica OpenTelemetry para operações de ficheiros alojados, esta implementação utiliza convenções gerais de customer span juntamente com atributos padrão file.* do registo, quando aplicável.

A especificação está sujeita a alterações à medida que surgem convenções relevantes da OpenTelemetry; assim, a saída de telemetria deste cliente também está sujeita a alterações.

Construtores

Name Description
OpenTelemetryHostedFileClient(IHostedFileClient, ILogger, String)

Inicializa uma nova instância da OpenTelemetryHostedFileClient classe.

Propriedades

Name Description
EnableSensitiveData

Recebe ou define um valor que indica se informação potencialmente sensível deve ser incluída na telemetria.

InnerClient

Obtém o interior IHostedFileClient.

(Herdado de DelegatingHostedFileClient)

Métodos

Name Description
DeleteAsync(String, HostedFileClientOptions, CancellationToken)

Apaga um ficheiro do serviço de IA.

Dispose()

Realiza tarefas definidas pela aplicação associadas à libertação, libertação ou reinício de recursos não geridos.

(Herdado de DelegatingHostedFileClient)
Dispose(Boolean)

Elimina a instância.

(Herdado de DelegatingHostedFileClient)
DownloadAsync(String, HostedFileClientOptions, CancellationToken)

Descarrega um ficheiro do serviço de IA.

GetFileInfoAsync(String, HostedFileClientOptions, CancellationToken)

Obtém metadados sobre um ficheiro.

GetService(Type, Object)

Pergunta a IHostedFileClient um objeto do tipo serviceTypeespecificado .

ListFilesAsync(HostedFileClientOptions, CancellationToken)

Lista ficheiros acessíveis por este cliente.

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

Carrega um ficheiro para o serviço de IA.

Métodos da Extensão

Name Description
AsBuilder(IHostedFileClient)

Cria um novo HostedFileClientBuilder uso innerClient como seu cliente interno.

DownloadAsDataContentAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Descarrega um ficheiro e devolve o seu conteúdo como um arquivo em buffer DataContent.

DownloadAsync(IHostedFileClient, HostedFileContent, HostedFileClientOptions, CancellationToken)

Descarrega um ficheiro referenciado por um HostedFileContent.

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

Descarrega um ficheiro e guarda-o num caminho local.

GetMetadata(IHostedFileClient)

Recebe o HostedFileClientMetadata valor para este cliente.

GetRequiredService(IHostedFileClient, Type, Object)

Pede IHostedFileClient um objeto do tipo serviceType especificado e lança uma exceção caso não esteja disponível.

GetRequiredService<TService>(IHostedFileClient, Object)

Pede um IHostedFileClient objeto do tipo TService e lança uma exceção se não estiver disponível.

GetService<TService>(IHostedFileClient, Object)

Recebe um serviço do tipo especificado do cliente de ficheiros.

UploadAsync(IHostedFileClient, DataContent, HostedFileClientOptions, CancellationToken)

Carrega conteúdo de um DataContentarquivo .

UploadAsync(IHostedFileClient, String, HostedFileClientOptions, CancellationToken)

Carrega um ficheiro a partir de um caminho local.

Aplica-se a