MarkdownReader.ReadAsync Metodo

Definizione

Overload

Nome Descrizione
ReadAsync(FileInfo, String, String, CancellationToken)

Legge un file e lo converte in un oggetto IngestionDocument.

ReadAsync(Stream, String, String, CancellationToken)

Legge un flusso e lo converte in un oggetto IngestionDocument.

ReadAsync(FileInfo, String, String, CancellationToken)

Origine:
MarkdownReader.cs

Legge un file e lo converte in un oggetto IngestionDocument.

public override System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ReadAsync(System.IO.FileInfo source, string identifier, string? mediaType = default, System.Threading.CancellationToken cancellationToken = default);
override this.ReadAsync : System.IO.FileInfo * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public Overrides Function ReadAsync (source As FileInfo, identifier As String, Optional mediaType As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IngestionDocument)

Parametri

source
FileInfo

File da leggere.

identifier
String

Identificatore univoco del documento.

mediaType
String

Tipo di supporto del file.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento.

Valori restituiti

Attività che rappresenta l'operazione di lettura asincrona.

Si applica a

ReadAsync(Stream, String, String, CancellationToken)

Origine:
MarkdownReader.cs

Legge un flusso e lo converte in un oggetto IngestionDocument.

public override System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument> ReadAsync(System.IO.Stream source, string identifier, string mediaType, System.Threading.CancellationToken cancellationToken = default);
override this.ReadAsync : System.IO.Stream * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.DataIngestion.IngestionDocument>
Public Overrides Function ReadAsync (source As Stream, identifier As String, mediaType As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IngestionDocument)

Parametri

source
Stream

Flusso da leggere.

identifier
String

Identificatore univoco del documento.

mediaType
String

Tipo di supporto del contenuto.

cancellationToken
CancellationToken

Token da monitorare per le richieste di annullamento.

Valori restituiti

Attività che rappresenta l'operazione di lettura asincrona.

Si applica a