Skip to content

DotNetDetector

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/dotnet-detector.ts

.NET Detector

Methods

MethodSignatureReturns
detectControllersdetectControllers(entities: Entity[])DetectedDotNetController[]
detectServicesdetectServices(entities: Entity[])DetectedDotNetService[]
getControllerSummarygetControllerSummary(controller: DetectedDotNetController)string

Where it refuses work

  • DotNetDetector stops the work with an early return when /Service\.cs$/i.test(filePath).
  • DotNetDetector stops the work with an early return when /:\s*I\w+Service/.test(code).
  • DotNetDetector stops the work with an early return when /DbContext/.test(code) && /private\s+readonly/.test(code).
  • DotNetDetector stops the work with an early return when routeMatch.
  • DotNetDetector stops the work with an early return when controllerMatch.
  • DotNetDetector stops the work with an early return when !paramsStr.trim().

Was this page helpful?

Download as PDF