SharedObjectCore Class
Base class from which all shared objects derive.
To use, import via @fluidframework/shared-object-base/legacy
.
For more information about our API support guarantees, see here.
Signature
export declare abstract class SharedObjectCore<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends EventEmitterWithErrorHandling<TEvent> implements ISharedObject<TEvent>
Extends: EventEmitterWithErrorHandling<TEvent>
Implements: ISharedObject<TEvent>
Type Parameters
Parameter | Constraint | Default | Description |
---|---|---|---|
TEvent | ISharedObjectEvents | ISharedObjectEvents |
Constructors
Constructor | Alerts | Description |
---|---|---|
(constructor)(id, runtime, attributes) | Alpha |
Constructs a new instance of the SharedObjectCore class |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
attributes | Alpha |
readonly |
IChannelAttributes | |
connected | Alpha |
readonly |
boolean | Gets the connection state |
deltaManager | Alpha |
readonly |
IDeltaManager<ISequencedDocumentMessage, IDocumentMessage> | Accessor for this.runtime 's deltaManager as a @fluidframework/container-definitions/internal#IDeltaManager |
handle | Alpha |
readonly |
IFluidHandleInternal | The handle referring to this SharedObject |
id | Alpha |
string | ||
IFluidLoadable | Alpha |
readonly |
this | |
logger | Alpha |
readonly |
ITelemetryLoggerExt | Telemetry logger for the shared object |
runtime | Alpha |
IFluidDataStoreRuntime | ||
serializer | Alpha |
readonly |
IFluidSerializer | The serializer to serialize / parse handles. |
Constructor Details
(constructor)
Constructs a new instance of the SharedObjectCore
class
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The id of the shared object |
runtime | IFluidDataStoreRuntime | The IFluidDataStoreRuntime which contains the shared object |
attributes | IChannelAttributes | Attributes of the shared object |
Property Details
attributes
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly attributes: IChannelAttributes;
Type: IChannelAttributes
connected
Gets the connection state
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
get connected(): boolean;
Type: boolean
deltaManager
Accessor for this.runtime
's deltaManager as a @fluidframework/container-definitions/internal#IDeltaManager
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
protected get deltaManager(): IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
Type: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>
handle
The handle referring to this SharedObject
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly handle: IFluidHandleInternal;
Type: IFluidHandleInternal
id
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
id: string;
Type: string
IFluidLoadable
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
get IFluidLoadable(): this;
Type: this
logger
Telemetry logger for the shared object
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
protected readonly logger: ITelemetryLoggerExt;
Type: ITelemetryLoggerExt
runtime
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
protected runtime: IFluidDataStoreRuntime;
Type: IFluidDataStoreRuntime
serializer
The serializer to serialize / parse handles.
To use, import via @fluidframework/shared-object-base/alpha
.
For more information about our API support guarantees, see here.
Signature
protected abstract get serializer(): IFluidSerializer;
Type: IFluidSerializer