Skip to main content

IPointInTimeDocumentServiceFactory Interface

An ODSP document service factory that supports point-in-time (sequence-number-based) loading.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/odsp-driver/legacy.

For more information about our API support guarantees, see here.

Signature

export interface IPointInTimeDocumentServiceFactory extends IDocumentServiceFactory

Extends: IDocumentServiceFactory

Remarks

The loader detects this capability structurally, so hosts can pass this factory directly to loadContainerToSequenceNumber.

Methods

MethodAlertsReturn TypeDescription
createPointInTimeDocumentService(resolvedUrl, targetSequenceNumber, logger, clientIsSummarizer)BetaPromise<IDocumentService>Creates a document service that materializes the document at the requested sequence number.

Method Details

createPointInTimeDocumentService

Creates a document service that materializes the document at the requested sequence number.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

createPointInTimeDocumentService(resolvedUrl: IResolvedUrl, targetSequenceNumber: number, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;

Parameters

ParameterModifiersTypeDescription
resolvedUrlIResolvedUrlThe resolved ODSP document URL.
targetSequenceNumbernumberThe sequence number at which to materialize the document.
loggeroptionalITelemetryBaseLoggerOptional telemetry logger.
clientIsSummarizeroptionalbooleanWhether the requesting client is a summarizer.

Returns

A read-only document service materialized at the requested sequence number.

Return type: Promise<IDocumentService>