MockFluidDataStoreContext Class
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/test-runtime-utils/legacy.
For more information about our API support guarantees, see here.
Signature
export declare class MockFluidDataStoreContext implements IFluidDataStoreContext
Implements: IFluidDataStoreContext
Constructors
| Constructor | Alerts | Description |
|---|---|---|
| (constructor)(id, existing, baseLogger, interactive) | Beta | Constructs a new instance of the MockFluidDataStoreContext class |
Properties
| Property | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| attachState | Beta | AttachState | Indicates the attachment state of the data store to a host service. | |
| baseLogger | Beta | readonly | ITelemetryLoggerExt | |
| baseSnapshot | Beta | ISnapshotTree | undefined | ||
| clientDetails | Beta | IClientDetails | ||
| clientId | Beta | string | undefined | ||
| connected | Beta | boolean | ||
| containerRuntime | Beta | IContainerRuntimeBase | ||
| createProps | Deprecated, Beta | optional | any | |
| deltaManager | Beta | IDeltaManager<ISequencedDocumentMessage, IDocumentMessage> | ||
| existing | Beta | readonly | boolean | |
| gcThrowOnTombstoneUsage | Beta | readonly | ||
| gcTombstoneEnforcementAllowed | Beta | readonly | ||
| id | Beta | readonly | string | |
| idCompressor | Beta | IIdCompressorCore & IIdCompressor | ||
| IFluidDataStoreRegistry | Beta | IFluidDataStoreRegistry | ||
| IFluidHandleContext | Beta | IFluidHandleContext | ||
| ILayerCompatDetails | Beta | optional | unknown | |
| isLocalDataStore | Beta | boolean | ||
| minVersionForCollab | Beta | MinimumVersionForCollab | ||
| options | Beta | Record<string | number, any> | ||
| packagePath | Beta | readonly string[] | ||
| readonly | Beta | boolean | ||
| scope | Beta | FluidObject | ||
| storage | Beta | IRuntimeStorageService |
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| addedGCOutboundRoute(fromPath, toPath, messageTimestampMs) | Beta | void | |
| deleteChildSummarizerNode(id) | Beta | void | |
| getAbsoluteUrl(relativeUrl) | Beta | Promise<string | undefined> | |
| getAudience() | Beta | IAudience | |
| getBaseGCDetails() | Beta | Promise<IGarbageCollectionDetailsBase> | |
| getCreateChildSummarizerNodeFn(id, createParam) | Beta | CreateChildSummarizerNodeFn | |
| getQuorum() | Beta | IQuorumClients | |
| makeLocallyVisible() | Beta | void | |
| off(event, listener) | Beta | this | |
| on(event, listener) | Beta | this | |
| once(event, listener) | Beta | this | |
| setChannelDirty(address) | Beta | void | |
| submitMessage() | Beta | void | |
| submitSignal() | Beta | void | |
| uploadBlob(blob) | Beta | Promise<IFluidHandleInternal<ArrayBufferLike>> |
Constructor Details
(constructor)
Constructs a new instance of the MockFluidDataStoreContext 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(id?: string, existing?: boolean, baseLogger?: ITelemetryLoggerExt, interactive?: boolean);