...
Code Block | ||||
---|---|---|---|---|
| ||||
[assembly: AntonyModule(typeof(ZoomModuleAntonyRegistry), "edef747c-e370-40d8-89c4-2f032a6b3314", RegistryGroup = "Zoom")] namespace antony.Groupware.AddinX.Zoom { public class ZoomModuleAntonyRegistry { [AntonyServiceRegistry()] public void Register(IServiceCollection services) { // ... } } } |
...
Let antony search
As we defined the registry itself we also need to tell antony where to find your assembly. We’ll do this by using the windows registry. You need to add a value into the following key
HKEY_CURRENT_USER\SOFTWARE\SCOM\antony\modules
There you can place the path to your module in the value. As the name you can use the name of your module, but it is not relevant.
...
You need to provide a folder. antony will autodetect all AntonyRegistries automatically and load, if the conditions are met.
Until now we can only load whole directories. We’ll provide the ability to specify a file in a few iterations.
Conclusion
As you saw it is simple to provide a module which is loaded by antony. You only need to specify a registry and let antony know where to search for it.
...