Interface ISharedServiceRegistry
interface ISharedServiceRegistry { getOrCreate<T>(serviceId,
factory,
options?): Promise<T>; has(serviceId): boolean; release(serviceId): Promise<void>; releaseAll(): Promise<void>; } Methods
getOrCreate
- getOrCreate<T>(serviceId, factory, options?): Promise<T>
Returns Promise<T>
has
- has(serviceId): boolean
Returns boolean
release
- release(serviceId): Promise<void>
Returns Promise<void>
releaseAll
- releaseAll(): Promise<void>
Returns Promise<void>
Registry for sharing heavyweight service instances across extensions.