DynamicObjectRegistry class

Static registry class for loadable projects for use in frameworks like @microsoft/live-share-turbo. All Live Share packages and extension frameworks (e.g., LiveMediaSession in our media package) will register their classes from within their main files. Goal of this class is for all Live Share packages that a developer has installed will be registered as available dynamic objects without the core package needing to be aware of what every DDS is.

Properties

dynamicLoadableObjects

Get all registered dynamic loadable objects

Methods

registerObjectClass(LoadableObjectClass<any>, string)

Static method to register a new dynamic loadable object class.

Property Details

dynamicLoadableObjects

Get all registered dynamic loadable objects

static Map<string, LoadableObjectClass<any>> dynamicLoadableObjects

Property Value

Map<string, LoadableObjectClass<any>>

Method Details

registerObjectClass(LoadableObjectClass<any>, string)

Static method to register a new dynamic loadable object class.

static function registerObjectClass(loadableObjectClass: LoadableObjectClass<any>, typeName: string)

Parameters

loadableObjectClass

LoadableObjectClass<any>

the Fluid loadable object class to register

typeName

string

Remarks

Duplicate classes will be ignored.