Skip to main content
Version: v1

OdspDocumentServiceFactory Class

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

Signature

export declare class OdspDocumentServiceFactory extends OdspDocumentServiceFactoryCore

Extends: OdspDocumentServiceFactoryCore

Constructors

Constructor Description
(constructor)(getStorageToken, getWebsocketToken, persistedCache, hostPolicy) Constructs a new instance of the OdspDocumentServiceFactory class

Constructor Details

(constructor)

Constructs a new instance of the OdspDocumentServiceFactory class

Signature

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

Parameters

Parameter Modifiers Type Description
getStorageToken TokenFetcher<OdspResourceTokenFetchOptions>
getWebsocketToken TokenFetcher<OdspResourceTokenFetchOptions> | undefined
persistedCache optional IPersistedCache
hostPolicy optional HostStoragePolicy