Method Single
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
documentIdstringmediaTypestringopenAsyncFunc<CancellationToken, ValueTask<Stream>>sourceIdstringsizeByteslong?lastModifiedUtcDateTimeOffset?