Class DocumentSourceItem
One item a source yields. SP3 never interprets Path.
public sealed record DocumentSourceItem : IEquatable<DocumentSourceItem>
- Inheritance
-
DocumentSourceItem
- Implements
- Inherited Members
Constructors
- DocumentSourceItem(string, string, Func<CancellationToken, ValueTask<Stream>>, string?, long?, DateTimeOffset?, IReadOnlyDictionary<string, string>?)
One item a source yields. SP3 never interprets Path.
Properties
- DocumentId
Stable within the source. The state row's key, with the source id.
- LastModifiedUtc
Declared mtime, when the source knows it for free.
- MediaType
Drives registry resolution before the extension does.
- Metadata
Extra per-document facts a consumer wants carried through.
- OpenAsync
Called TWICE per document (hash pass, then extraction pass) and so MUST be re-openable. SHOULD return a seekable stream at position 0; a non-seekable one is buffered once below NonSeekableBufferLimitBytes and raises 6053 above it (spec 7.1).
- Path
The originating path or handle, for diagnostics only.
- SizeBytes
Declared size, when the source knows it for free.