Method UseAutoScan
UseAutoScan<TModule>(bool)
This method is an shortcut for calling AutoScanModules<TModule>().
public HttpServerHostContextBuilder UseAutoScan<TModule>(bool activateInstances = true) where TModule : RouterModule
Parameters
activateInstances
boolOptional. Determines whether found types should be defined as instances or static members.
Returns
Type Parameters
TModule
An class which implements RouterModule, or the router module itself.
UseAutoScan<TModule>(Assembly, bool)
This method is an shortcut for calling AutoScanModules<TModule>().
public HttpServerHostContextBuilder UseAutoScan<TModule>(Assembly t, bool activateInstances = true) where TModule : RouterModule
Parameters
t
AssemblyThe assembly where the scanning types are.
activateInstances
boolOptional. Determines whether found types should be defined as instances or static members.
Returns
Type Parameters
TModule
An class which implements RouterModule, or the router module itself.