ATLAS 10 plugins are discovered and registered during application start up. The location of the application executable is searched for assemblies with word “plugin” in the filename, which export the IExport interface and inherit from Module.
As well as the plugin module, a plugin will also need to implement an IAtlasPlugin class to describe to ATLAS 10 what kind of plugin it is. This plugin description should inherit from AtlasPluginBase and implement either of the following interfaces depending on the type of plugin:
- IAtlasDisplayPlugin
- IAtlasFunctionEditorPlugin
- IAtlasParameterBrowserPlugin
- IAtlasRecorderPlugin
- IAtlasSessionBrowserPlugin
- IAtlasTimelinePlugin
- IAtlasToolPlugin
- IAtlasXAxisMappingPlugin
The following code shows the definition of a plugin module with the plugin being registered in the IoC container:
[Export(typeof(IModule))]
public class PluginModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.RegisterType().As();
}
}
Comments
0 comments
Please sign in to leave a comment.