Jump to: navigation, search

Changes


HowTo:Create UBIK Plugin

301 bytes removed, 10:47, 19 March 2015
/* Interface: IUbikInjectionMetaData */
== Interface: IUbikInjectionMetaData ==
Managing plugins correctly requires to provice presumes the following information, as defined by the interface '''UBIK.Injection.IUbikInjectionMetaData'''.
The plugin must implement the '''IUbikPlugin''' interface. Additionally, the plugin has to be registered for MEF composition by defining the export contract via the attributes.
<source lang="csharp">
[Export(typeof(UBIK.Injection.IUbikPlugin))]
[ExportMetadata("ID", "C149402E-BC86-46D6-8D1B-63C86894EA77")]
[ExportMetadata("Type", typeof(TestPlugin))]
[ExportMetadata("Version", 1)]
[ExportMetadata("Company", "Augmensys GmbH")]
 
public class TestPlugin : UBIK.Injection.IUbikPlugin
{
}
</source>
=== Mandatory information ===
 
{| class="wikitable" | width = "50%"
|-
! Name !! Type !! Description
|-
| ID|| string {{MSDN/String}} || Unique ID of the Pluginplugin
|-
| Type|| System.Type || Systemtype of the Plugin. Used plugin; used for filtering the Plugins plugins during loading.
|-
|}
 
 
=== Optional information ===
10,686
edits