Method
Router.AutoScanModules
AutoScanModules(Type, Assembly) #
Scans for all types that implements the specified module type and associates an instance of each type to the router.
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public void AutoScanModules(Type moduleType, Assembly searchAssembly)Parameters #
moduleType Type
An class which implements RouterModule, or the router module itself.
searchAssembly Assembly
The 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.
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public void AutoScanModules<TModule>(Assembly assembly) where TModule : RouterModuleParameters #
assembly Assembly
The 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.
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public void AutoScanModules<TModule>() where TModule : RouterModuleType Parameters #
TModule
An class which implements RouterModule, or the router module itself.