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(props).

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 IResolvedUrl.
targetSequenceNumbernumberThe sequence number at which to materialize the document. See loadToSequenceNumber.
loggeroptionalITelemetryBaseLoggerOptional ITelemetryBaseLogger.
clientIsSummarizeroptionalbooleanWhether to apply summarizer policies and telemetry to the underlying document services. Defaults to false.

Returns​

A read-only IDocumentService materialized at the requested sequence number.

Return type: Promise<IDocumentService>