Difference between revisions of "HowTo:Create UBIK Module"
(→Example) |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 69: | Line 69: | ||
= Example = | = Example = | ||
<source lang="csharp"> | <source lang="csharp"> | ||
| − | [Export(typeof(UBIK.Injection. | + | [Export(typeof(UBIK.Injection.IUbikPlugin))] |
[ExportMetadata("ID", "C149402E-BC86-46D6-8D1B-63C86894EA77")] | [ExportMetadata("ID", "C149402E-BC86-46D6-8D1B-63C86894EA77")] | ||
[ExportMetadata("Type", typeof(TestModule))] | [ExportMetadata("Type", typeof(TestModule))] | ||
| Line 106: | Line 106: | ||
{ | { | ||
get; | get; | ||
| − | } = new List<ModuleInfo>() | + | } = new List<ModuleInfo>() |
| + | { | ||
| + | new ModuleInfo() | ||
| + | { | ||
| + | ID = Guid.Parse("A4FF45D7-20C7-451A-A58A-1001B5B1EA7B"), | ||
| + | Name = "MRO Plugin" | ||
| + | } | ||
| + | } | ||
} | } | ||
</source> | </source> | ||
| Line 113: | Line 120: | ||
{| class="wikitable" | width = "100%" | {| class="wikitable" | width = "100%" | ||
|- | |- | ||
| − | ! Name | + | ! Name !! Description |
|- | |- | ||
| − | | SystemDefinitionsProvider | + | | SystemDefinitionsProvider || The instance of the SystemDefinitions for the respective module is provided. |
|- | |- | ||
| − | | Initialize | + | | Initialize || Initializes the module. |
|- | |- | ||
| − | | Initialized | + | | Initialized || Returns true when the plugin is initialized |
|- | |- | ||
| − | | Terminate | + | | Terminate || Terminates the UBIKEnvironment if it has been initialized. |
|- | |- | ||
| − | | DependencyModules | + | | DependencyModules || Returns the module information for which it has a dependency. |
|- | |- | ||
|} | |} | ||
| Line 131: | Line 138: | ||
== See also == | == See also == | ||
* [[Injection_Management]] | * [[Injection_Management]] | ||
| + | * [[HowTo:Provide_system_definitions_with_a_custom_plugin]] | ||
| + | * [[HowTo:Create_UBIK_Plugin]] | ||
[[Category:Injecting|Create UBIK Module]] | [[Category:Injecting|Create UBIK Module]] | ||
| + | [[Category:Module|Create UBIK Module]] | ||
| + | [[Category:Plugin|Create UBIK Module]] | ||
Latest revision as of 11:38, 24 October 2025
UBIK® Modules are loaded dynamically into the UBIK® Kernel by the UBIK® Injection Management based on the Microsoft Extensibility Framework (MEF).
