IExtensionHostContext Interface#
Provides access to the loaded extensions in the Verso host, grouped by category.
public interface IExtensionHostContext
Methods#
DisableExtensionAsync(string) Method#
Disables an extension, removing its capabilities from query results without unloading it.
System.Threading.Tasks.Task DisableExtensionAsync(string extensionId);
Parameters#
extensionId System.String
The unique identifier of the extension to disable.
Returns#
EnableExtensionAsync(string) Method#
Enables a previously disabled extension, restoring its capabilities to query results.
System.Threading.Tasks.Task EnableExtensionAsync(string extensionId);
Parameters#
extensionId System.String
The unique identifier of the extension to enable.
Returns#
GetCellTypes() Method#
Returns all registered cell types.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ICellType> GetCellTypes();
Returns#
System.Collections.Generic.IReadOnlyList<ICellType>
A read-only list of ICellType instances.
GetExtensionInfos() Method#
Returns metadata for all loaded extensions, including their current status and capabilities.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ExtensionInfo> GetExtensionInfos();
Returns#
System.Collections.Generic.IReadOnlyList<ExtensionInfo>
A read-only list of ExtensionInfo describing each loaded extension.
GetFormatters() Method#
Returns all registered data formatters.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.IDataFormatter> GetFormatters();
Returns#
System.Collections.Generic.IReadOnlyList<IDataFormatter>
A read-only list of IDataFormatter instances.
GetKernels() Method#
Returns all registered language kernels.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ILanguageKernel> GetKernels();
Returns#
System.Collections.Generic.IReadOnlyList<ILanguageKernel>
A read-only list of ILanguageKernel instances.
GetLayouts() Method#
Returns all registered layout engines.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ILayoutEngine> GetLayouts();
Returns#
System.Collections.Generic.IReadOnlyList<ILayoutEngine>
A read-only list of ILayoutEngine instances.
GetLoadedExtensions() Method#
Returns all extensions currently loaded in the host.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.IExtension> GetLoadedExtensions();
Returns#
System.Collections.Generic.IReadOnlyList<IExtension>
A read-only list of loaded IExtension instances.
GetPostProcessors() Method#
Returns all registered notebook post-processors.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.INotebookPostProcessor> GetPostProcessors();
Returns#
System.Collections.Generic.IReadOnlyList<INotebookPostProcessor>
A read-only list of INotebookPostProcessor instances.
GetPropertyProviders() Method#
Returns all registered cell property providers.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ICellPropertyProvider> GetPropertyProviders();
Returns#
System.Collections.Generic.IReadOnlyList<ICellPropertyProvider>
A read-only list of ICellPropertyProvider instances.
GetRenderers() Method#
Returns all registered cell renderers.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ICellRenderer> GetRenderers();
Returns#
System.Collections.Generic.IReadOnlyList<ICellRenderer>
A read-only list of ICellRenderer instances.
GetSerializers() Method#
Returns all registered notebook serializers.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.INotebookSerializer> GetSerializers();
Returns#
System.Collections.Generic.IReadOnlyList<INotebookSerializer>
A read-only list of INotebookSerializer instances.
GetThemes() Method#
Returns all registered themes.
System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ITheme> GetThemes();
Returns#
System.Collections.Generic.IReadOnlyList<ITheme>
A read-only list of ITheme instances.
RequestExtensionConsentAsync(IReadOnlyList<ExtensionConsentInfo>, CancellationToken) Method#
Requests user consent to load the specified extension packages.
Returns true if the user approved, false if denied.
Default implementation auto-approves (for tests / non-interactive hosts).
System.Threading.Tasks.Task<bool> RequestExtensionConsentAsync(System.Collections.Generic.IReadOnlyList<Verso.Abstractions.ExtensionConsentInfo> extensions, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters#
extensions System.Collections.Generic.IReadOnlyList<ExtensionConsentInfo>
cancellationToken System.Threading.CancellationToken