Skip to main content
Version: v2

OdspDocumentServiceFactory Class

Factory for creating the sharepoint document service. Use this if you want to use the sharepoint implementation.

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 declare class OdspDocumentServiceFactory extends OdspDocumentServiceFactoryCore

Extends: OdspDocumentServiceFactoryCore

Constructors​

ConstructorAlertsDescription
(constructor)(getStorageToken, getWebsocketToken, persistedCache, hostPolicy)BetaConstructs a new instance of the OdspDocumentServiceFactory class

Constructor Details​

(constructor)​

Constructs a new instance of the OdspDocumentServiceFactory class

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​

constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);

Parameters​

ParameterModifiersTypeDescription
getStorageTokenTokenFetcher<OdspResourceTokenFetchOptions>
getWebsocketTokenTokenFetcher<OdspResourceTokenFetchOptions> | undefined
persistedCacheoptionalIPersistedCache
hostPolicyoptionalHostStoragePolicy