Creates a new RuntimeBridgeService instance.
Private Optional_Protected ReadonlyloggerLogger instance for this service
Protected ReadonlynameService name for logging
Gets the current service state.
ProtectedassertDisposes the service and cleans up resources. Ensures disposal only happens once.
PrivatehandleHandles runtime expiration notifications.
Extension message containing runtime info
Document context
PrivatehandleHandles runtime/kernel selection requests.
Document context
PrivatehandleHandles runtime termination requests.
Extension message containing runtime info
Document context
Initializes the service. Ensures initialization only happens once and tracks state.
ProtectedonCleans up runtime bridge resources.
ProtectedonInitializes the runtime bridge service. No-op for now as the service is stateless.
Registers runtime-related message handlers with the DocumentMessageRouter.
The message router to register handlers with
Sets the fallback handler for kernel selection failures. Only used by notebookProvider for Datalayer runtime selector.
Callback to invoke when kernel selector fails
Bridges runtime lifecycle operations between webviews and the extension. Encapsulates runtime selection, termination, and expiration logic shared by providers.