MockFluidDataStoreContext Class
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) | Alpha |
Constructs a new instance of the MockFluidDataStoreContext class |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
attachState | Alpha |
AttachState | Indicates the attachment state of the data store to a host service. | |
baseLogger | Alpha |
readonly |
ITelemetryLoggerExt | |
baseSnapshot | Alpha |
ISnapshotTree | undefined | ||
clientDetails | Alpha |
IClientDetails | ||
clientId | Alpha |
string | undefined | ||
connected | Alpha |
boolean | ||
containerRuntime | Alpha |
IContainerRuntimeBase | ||
createProps | Deprecated , Alpha |
optional |
any | |
deltaManager | Alpha |
IDeltaManager<ISequencedDocumentMessage, IDocumentMessage> | ||
existing | Alpha |
readonly |
boolean | |
gcThrowOnTombstoneUsage | Alpha |
readonly |
||
gcTombstoneEnforcementAllowed | Alpha |
readonly |
||
id | Alpha |
readonly |
string | |
idCompressor | Alpha |
IIdCompressorCore & IIdCompressor | ||
IFluidDataStoreRegistry | Alpha |
IFluidDataStoreRegistry | ||
IFluidHandleContext | Alpha |
IFluidHandleContext | ||
isLocalDataStore | Alpha |
boolean | ||
options | Alpha |
Record<string | number, any> | ||
packagePath | Alpha |
readonly string[] | ||
scope | Alpha |
FluidObject | ||
storage | Alpha |
IDocumentStorageService |
Constructor Details
(constructor)
Constructs a new instance of the MockFluidDataStoreContext
class
For more information about our API support guarantees, see here.
Signature
constructor(id?: string, existing?: boolean, baseLogger?: ITelemetryLoggerExt, interactive?: boolean);
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
id | optional | string | |
existing | optional | boolean | |
baseLogger | optional | ITelemetryLoggerExt | |
interactive | optional | boolean |
Property Details
attachState
Indicates the attachment state of the data store to a host service.
For more information about our API support guarantees, see here.
Signature
attachState: AttachState;
Type: AttachState
baseLogger
For more information about our API support guarantees, see here.
Signature
readonly baseLogger: ITelemetryLoggerExt;
Type: ITelemetryLoggerExt
baseSnapshot
For more information about our API support guarantees, see here.
Signature
baseSnapshot: ISnapshotTree | undefined;
Type: ISnapshotTree | undefined
clientDetails
For more information about our API support guarantees, see here.
Signature
clientDetails: IClientDetails;
Type: IClientDetails
clientId
For more information about our API support guarantees, see here.
Signature
clientId: string | undefined;
Type: string | undefined
connected
For more information about our API support guarantees, see here.
Signature
connected: boolean;
Type: boolean
containerRuntime
For more information about our API support guarantees, see here.
Signature
containerRuntime: IContainerRuntimeBase;
Type: IContainerRuntimeBase
createProps
0.16 Issue #1635, #3631
For more information about our API support guarantees, see here.
Signature
createProps?: any;
Type: any
deltaManager
For more information about our API support guarantees, see here.
Signature
deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
Type: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>
existing
For more information about our API support guarantees, see here.
Signature
readonly existing: boolean;
Type: boolean
gcThrowOnTombstoneUsage
For more information about our API support guarantees, see here.
Signature
readonly gcThrowOnTombstoneUsage = false;
gcTombstoneEnforcementAllowed
For more information about our API support guarantees, see here.
Signature
readonly gcTombstoneEnforcementAllowed = false;
id
For more information about our API support guarantees, see here.
Signature
readonly id: string;
Type: string
idCompressor
For more information about our API support guarantees, see here.
Signature
idCompressor: IIdCompressorCore & IIdCompressor;
Type: IIdCompressorCore & IIdCompressor
IFluidDataStoreRegistry
For more information about our API support guarantees, see here.
Signature
IFluidDataStoreRegistry: IFluidDataStoreRegistry;
Type: IFluidDataStoreRegistry
IFluidHandleContext
For more information about our API support guarantees, see here.
Signature
IFluidHandleContext: IFluidHandleContext;
Type: IFluidHandleContext
isLocalDataStore
For more information about our API support guarantees, see here.
Signature
isLocalDataStore: boolean;
Type: boolean
options
For more information about our API support guarantees, see here.
Signature
options: Record<string | number, any>;
Type: Record<string | number, any>
packagePath
For more information about our API support guarantees, see here.
Signature
packagePath: readonly string[];
Type: readonly string[]
scope
For more information about our API support guarantees, see here.
Signature
scope: FluidObject;
Type: FluidObject
storage
For more information about our API support guarantees, see here.
Signature
storage: IDocumentStorageService;
Type: IDocumentStorageService