Search Results for

    Show / Hide Table of Contents

    Interface IPluginRegistry

    This interface provides the main entry point for working with plug-ins and extensions.

    Namespace: Sdl.Core.PluginFramework
    Assembly: Sdl.Core.PluginFramework.dll
    Syntax
    public interface IPluginRegistry
    Remarks

    Instances of the plugin registry can be created using the various factory methods of the PluginManager class.

    Properties

    PluginCache

    Returns the plug-in cache associated with this plug-in registry.

    Declaration
    IPluginCache PluginCache { get; }
    Property Value
    Type Description
    IPluginCache

    PluginFilter

    Gets the plug-in filter that controls whether certain plug-ins or individual extensions are loaded. Can be null.

    Declaration
    IPluginFilter PluginFilter { get; }
    Property Value
    Type Description
    IPluginFilter

    PluginInitializer

    Gets the IPluginInitializer used by the plug-in registry to initialize plug-ins.

    Declaration
    IPluginInitializer PluginInitializer { get; }
    Property Value
    Type Description
    IPluginInitializer

    PluginLocator

    Returns the plug-in locator associated with this plug-in registry.

    Declaration
    IPluginLocator PluginLocator { get; }
    Property Value
    Type Description
    IPluginLocator

    Plugins

    Returns a collection of all the plug-ins that are available.

    Declaration
    PluginCollection Plugins { get; }
    Property Value
    Type Description
    PluginCollection

    PluginStateHandler

    Gets or sets an plugin state handler, which determines whether plugins can be enabled or disabled. Can be null.

    Declaration
    IPluginStateHandler PluginStateHandler { get; set; }
    Property Value
    Type Description
    IPluginStateHandler

    PluginTypeLoader

    Gets the plug-in type loader component used by the plug-in registry to load types referred to in plug-in manifests.

    Declaration
    IPluginTypeLoader PluginTypeLoader { get; }
    Property Value
    Type Description
    IPluginTypeLoader

    Methods

    EnsurePluginsInitialized(IEnumerable<IExtension>, EventHandler<PluginInitializationResultsEventArgs>)

    Helper method to asynchronously initialize all the plug-ins that are required to instantiate the specified extensions.

    Declaration
    void EnsurePluginsInitialized(IEnumerable<IExtension> extensions, EventHandler<PluginInitializationResultsEventArgs> pluginsInitializedCallback)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IExtension> extensions
    System.EventHandler<PluginInitializationResultsEventArgs> pluginsInitializedCallback

    GetExtensionPoint<T>()

    Gets the extension point for a certain type of extension attribute.

    Declaration
    IExtensionPoint GetExtensionPoint<T>()
        where T : ExtensionAttribute
    Returns
    Type Description
    IExtensionPoint

    The extension point for the given type of extension attribute.

    Type Parameters
    Name Description
    T

    The extension attribute type identifying the extension point.

    On this page

    • Properties
      • PluginCache
      • PluginFilter
      • PluginInitializer
      • PluginLocator
      • Plugins
      • PluginStateHandler
      • PluginTypeLoader
    • Methods
      • EnsurePluginsInitialized(IEnumerable<IExtension>, EventHandler<PluginInitializationResultsEventArgs>)
      • GetExtensionPoint<T>()
    Back to top Generated by DocFX