Method AutoScanModules
AutoScanModules(Type, Assembly)
Scans for all types that implements the specified module type and associates an instance of each type to the router.
public void AutoScanModules(Type moduleType, Assembly searchAssembly)
Parameters
moduleType
TypeAn class which implements RouterModule, or the router module itself.
searchAssembly
AssemblyThe assembly to search the module type in.
AutoScanModules<TModule>(Assembly)
Scans for all types that implements TModule
and associates an instance of each type to the router. Note that, TModule
must be an RouterModule type and an accessible constructor
for each type must be present.
public void AutoScanModules<TModule>(Assembly assembly) where TModule : RouterModule
Parameters
assembly
AssemblyThe assembly to search
TModule
in.
Type Parameters
TModule
An class which implements RouterModule, or the router module itself.
AutoScanModules<TModule>()
Scans for all types that implements TModule
and associates an instance of each type to the router. Note
that, TModule
must be an RouterModule type and an accessible constructor
for each type must be present.
public void AutoScanModules<TModule>() where TModule : RouterModule
Type Parameters
TModule
An class which implements RouterModule, or the router module itself.