Modules
A module is a small class that can be used to bundle up a set of related components behind a ‘facade’ to simplify configuration and deployment.
In FigNet Modules implement FigNet.Core.IModule & it is used to add your custom logic to fignet application as a plugin.
How to create a Module
How to load a Module
Open ServerConfig.xml and add Module tag and under that tag add assemblyName & Type tags AssemblyName is the name of the dll or solution whereas Type name is the class name including namespace.
Tag
Description
Module
define an instance of module
AssemblyName
assembly name (dll) without extension
Type
name of module including complete namespace
Dependencies
addition assemblies a module depends on
Package
dependency
Modules use reflection to create instances if you are using Unity IL2CPP load module manually instead of using config.
How to manually load the module
AddModule method also calls the Load method of Module internally. There is no need to call Load method of Module explicitly
Last updated
Was this helpful?