Route Scanner
Route scanners are used to scan assemblies, classes and methods and generate routes which can then be registered with a router. Routes are identified by attributes on the methods, and classes that contain routes are identifed with attributes on the class.
important
The RouteScanner
and Router
for a given IRestServer
must be using the same service collection so that types that have routes to register can be added to the container.
#
Controlling What To ScanYou can control what assemblies are scanned by the route scanner in two ways.
#
Exclude Specific AssembliesAdd assemblies to be excluded from the scan to the ignored assemblies list prior to scanning.
#
Scan A Single AssemblyScan only a specified assembly.
#
Controlling When To ScanTODO
#
Identifying Methods To ScanTODO