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.
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public void AutoScanModules(Type moduleType, Assembly searchAssembly)
Parameters
moduleTypeTypeAn class which implements RouterModule, or the router module itself.
searchAssemblyAssemblyThe 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 : RouterModule
Parameters
assemblyAssemblyThe assembly to search
TModulein.
Type Parameters
TModuleAn 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 : RouterModule
Type Parameters
TModuleAn class which implements RouterModule, or the router module itself.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語