Extension - Custom configuration: Porovnání verzí
Z Podpora.nextis.cz
(Založena nová stránka s textem „Namespaces: Core.Config.Extensions Classes: Core.Config.Extensions.Storage Core.Config.Extensions.ExtendedConfiguration“) |
|||
(Nejsou zobrazeny 2 mezilehlé verze od stejného uživatele.) | |||
Řádka 1: | Řádka 1: | ||
− | + | === Involved namespaces === | |
Core.Config.Extensions | Core.Config.Extensions | ||
− | + | === Involved classes === | |
Core.Config.Extensions.Storage | Core.Config.Extensions.Storage | ||
+ | |||
Core.Config.Extensions.ExtendedConfiguration | Core.Config.Extensions.ExtendedConfiguration | ||
+ | |||
+ | === Important events === | ||
+ | <syntaxhighlight lang="vb"> | ||
+ | InitializeConfiguration(e As System.Collections.Generic.List(Of Core.Config.Extensions.ExtendedConfiguration)) | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | === Step by step example === | ||
+ | # within your extension project create one class, inherited from <code>Core.Config.Extensions.ExtendedConfiguration</code> | ||
+ | # fill must override properties (key, name) | ||
+ | # put your own requested properties into this class | ||
+ | # create shared instance of this class for your project (not necessary, just for simplifying acces to your configuration within your project) | ||
+ | # during the event InitializeConfiguration put instance of your configuration class into list (available within events inside argument) | ||
+ | # your configuration will be visible in global configuration under node "Extension" |
Aktuální verze z 17. 8. 2017, 13:26
Involved namespaces
Core.Config.Extensions
Involved classes
Core.Config.Extensions.Storage
Core.Config.Extensions.ExtendedConfiguration
Important events
InitializeConfiguration(e As System.Collections.Generic.List(Of Core.Config.Extensions.ExtendedConfiguration))
Step by step example
- within your extension project create one class, inherited from
Core.Config.Extensions.ExtendedConfiguration
- fill must override properties (key, name)
- put your own requested properties into this class
- create shared instance of this class for your project (not necessary, just for simplifying acces to your configuration within your project)
- during the event InitializeConfiguration put instance of your configuration class into list (available within events inside argument)
- your configuration will be visible in global configuration under node "Extension"