Method UseAutoScan
UseAutoScan<TModule>()
This method is an shortcut for calling AutoScanModules<TModule>().
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public HttpServerHostContextBuilder UseAutoScan<TModule>() where TModule : RouterModule
Returns
Type Parameters
TModuleAn class which implements RouterModule, or the router module itself.
UseAutoScan<TModule>(Assembly)
This method is an shortcut for calling AutoScanModules<TModule>().
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming.")]
public HttpServerHostContextBuilder UseAutoScan<TModule>(Assembly t) where TModule : RouterModule
Parameters
tAssemblyThe assembly where the scanning types are.
Returns
Type Parameters
TModuleAn class which implements RouterModule, or the router module itself.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語