IContainerRuntime Interface
Represents the runtime of the container. Contains helper functions/state of the container.
To use, import via @fluidframework/container-runtime-definitions/legacy
.
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
/** @sealed */
export interface IContainerRuntime extends IProvideFluidDataStoreRegistry, IContainerRuntimeBaseWithCombinedEvents
Extends: IProvideFluidDataStoreRegistry, IContainerRuntimeBaseWithCombinedEvents
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
attachState | Alpha |
readonly |
AttachState | Indicates the attachment state of the container to a host service. |
clientDetails | Alpha |
readonly |
IClientDetails | |
clientId | Alpha |
readonly |
string | undefined | |
connected | Alpha |
readonly |
boolean | |
deltaManager | Alpha |
readonly |
IDeltaManager<ISequencedDocumentMessage, IDocumentMessage> | |
flushMode | Alpha |
readonly |
FlushMode | |
isDirty | Alpha |
readonly |
boolean | Returns true if document is dirty, i.e. there are some pending local changes that either were not sent out to delta stream or were not yet acknowledged. |
options | Alpha |
readonly |
Record<string | number, any> | |
scope | Alpha |
readonly |
FluidObject | |
storage | Alpha |
readonly |
IDocumentStorageService |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
getAbsoluteUrl(relativeUrl) | Alpha |
Promise<string | undefined> | Get an absolute url for a provided container-relative request. Returns undefined if the container isn't attached to storage. |
Property Details
attachState
Indicates the attachment state of the container to a host service.
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly attachState: AttachState;
Type: AttachState
clientDetails
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly clientDetails: IClientDetails;
Type: IClientDetails
clientId
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly clientId: string | undefined;
Type: string | undefined
connected
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly connected: boolean;
Type: boolean
deltaManager
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
Type: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>
flushMode
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly flushMode: FlushMode;
Type: FlushMode
isDirty
Returns true if document is dirty, i.e. there are some pending local changes that either were not sent out to delta stream or were not yet acknowledged.
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly isDirty: boolean;
Type: boolean
options
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly options: Record<string | number, any>;
Type: Record<string | number, any>
scope
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly scope: FluidObject;
Type: FluidObject
storage
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
readonly storage: IDocumentStorageService;
Type: IDocumentStorageService
Method Details
getAbsoluteUrl
Get an absolute url for a provided container-relative request. Returns undefined if the container isn't attached to storage.
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
Parameters
Parameter | Type | Description |
---|---|---|
relativeUrl | string | A relative request within the container |
Returns
Return type: Promise<string | undefined>