Table of Contents

Method Single

Namespace
Qavren.Edge.Ingestion
Assembly
Qavren.Edge.Ingestion.dll

Single(string, string, Func<CancellationToken, ValueTask<Stream>>, string, long?, DateTimeOffset?)

One document, opened by a consumer-supplied delegate.

[SuppressMessage("Naming", "CA1720:Identifier contains type name", Justification = "Spec 11 declares this factory as IngestionSource.Single and the name is part of the published API. 'Single' here is a cardinality, not System.Single, and renaming it would break the spec's surface.")]
public static IngestionSource Single(string documentId, string mediaType, Func<CancellationToken, ValueTask<Stream>> openAsync, string sourceId, long? sizeBytes = null, DateTimeOffset? lastModifiedUtc = null)

Parameters

documentId string
mediaType string
openAsync Func<CancellationToken, ValueTask<Stream>>
sourceId string
sizeBytes long?
lastModifiedUtc DateTimeOffset?

Returns

IngestionSource