Interface IPluginInitializer
Component that is used by a plug-in registry (IPluginRegistry) to initailize plug-ins. This component ensures that the plug-in is ready to be used; i.e. its extensions are ready to be instantiated.
Namespace: SdlSdl.CorePluginFramework
Assembly: Sdl.Core.PluginFramework.dll
Syntax
public interface IPluginInitializer
Methods
InitializePluginAsync(IEnumerable<IPlugin>)
Starts the initialization of the specified plug-in.
Declaration
void InitializePluginAsync(IEnumerable<IPlugin> plugin)
Parameters
Type | Name | Description |
---|---|---|
IEnumerableIPlugin | plugin | The plug-ins to be initialized. |
InitializePluginAsyncCancel(IEnumerable<IPlugin>)
Cancels the initailization of the specified plug-in.
Declaration
void InitializePluginAsyncCancel(IEnumerable<IPlugin> plugin)
Parameters
Type | Name | Description |
---|---|---|
IEnumerableIPlugin | plugin | The plug-ins for which initialization should be cancelled. |
Events
InitializePluginCompleted
Raised when a plug-in has been initialized, successfully or not.
Declaration
event EventHandler<InitializePluginCompletedEventArgs> InitializePluginCompleted
Event Type
Type | Description |
---|---|
EventHandlerInitializePluginCompletedEventArgs |
InitializePluginProgressChanged
Raised while a plug-in is being initailized. Can be used to monitor initialization progress.
Declaration
event EventHandler<InitializePluginProgressChangedEventArgs> InitializePluginProgressChanged
Event Type
Type | Description |
---|---|
EventHandlerInitializePluginProgressChangedEventArgs |