Skip to main content

Function: getProviderLifecycleContext()

getProviderLifecycleContext(providerId, containerProviderConnection): LifecycleContext

Defined in: packages/extension-api/src/extension-api.d.ts:1082

It returns the lifecycle context for the provider connection. If no context is found it throws an error

Parameters​

providerId​

string

the provider id

containerProviderConnection​

ContainerProviderConnection

the connection to retrieve the lifecycle context for

Returns​

LifecycleContext

the lifecycle context

Throws​

if no provider with the id has been found or there is no context associate to it.