ISharedObject Interface
Base interface for shared objects from which other interfaces derive. Implemented by SharedObject
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/shared-object-base/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface ISharedObject<TEvent extends ISharedObjectEvents = ISharedObjectEvents> extends IChannel, IEventProvider<TEvent>
Extends: IChannel, IEventProvider<TEvent>
Type Parameters
Parameter | Constraint | Default | Description |
---|---|---|---|
TEvent | ISharedObjectEvents | ISharedObjectEvents |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
bindToContext() | Alpha |
void | Binds the given shared object to its containing data store runtime, causing it to attach once the runtime attaches. |
Method Details
bindToContext
Binds the given shared object to its containing data store runtime, causing it to attach once the runtime attaches.
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
bindToContext(): void;