Skip to content
CAI
Software that uses CAICheck a score

sgermosen/StreamingFromFiles

32.9

Weak · 8 November 2026

3.4k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a .NET-based backend architecture comprising multiple services for managing user accounts, processing media files, and handling book data. It features an API for authentication and image management, a background service for encoding MP4 videos in Azure, and a worker service that processes text files into CSVs. The domain layer supports audit tracking and database migrations, while the infrastructure handles Azure storage and external API integrations.

Features

Added development configuration files and project description

Added appsettings.Development.json files for the WorkerService, BgServicex, and EngineAPI components, and updated the README to describe the project's purpose of uploading video files to Azure storage.

(repo-wide) · high confidence

Initial release of the EngineAPI with authentication, localization, and media handling

The EngineAPI is introduced as a new .NET Core service providing user account management (registration, login, password reset, email confirmation), JWT-based authentication, and multi-language support via cookies and route constraints. It also includes an image upload and retrieval endpoint, a custom bad-request parser for consistent error responses, and middleware for error handling and JWT validation.

Src/EngineAPI · high confidence

Introduce WorkerService to process book data from a watched folder

Added a new background worker service that monitors a specified input folder for new text files. When a file is created, the service reads the content, fetches book data from an external API (or uses cached data), and writes the results to a CSV file in an output folder. This introduces a new pipeline for processing book records via file system events.

Src/WorkerService · high confidence

Introduce background service for processing media files

The BgServicex project is introduced, providing a background service that monitors a local folder for new MP4 files. When a file is created, the service records the event in a SQL database and initiates an Azure Media Services encoding job. The implementation includes configuration wrappers for Azure credentials, an upload service for Azure Blob Storage, and utility classes for authentication and environment variable loading.

Src/BgServicex · high confidence

Introduced domain entities and data context for user, image, and file management

Added the \ApplicationDataContext\ with support for \ApplicationUser\, \Image\, \ImageType\, and \EventFile\ entities, enabling database migrations and audit tracking (created/updated/deleted by user). The \ApplicationUser\ entity extends ASP.NET Identity with \FullName\, \Identification\, \EmployeeNumber\, and \StoreCode\ fields. A \CurrentUser\ model and \CurrentUserFactory\ are provided to extract user claims from the HTTP context, which is then used by the data context to populate audit fields (\CreatedAt\, \CreatedBy\, \UpdatedAt\, \UpdatedBy\, \DeletedAt\, \DeletedBy\) on save.

Src/Domain, Src/Transversal · high confidence

Dependencies

Initial .NET project structure and dependency definitions

The repository now includes five new .NET project files (BgServicex, Domain, EngineAPI, Transversal, and WorkerService) that establish the initial architecture and dependency graph. These files define the target frameworks (net5.0 and net6.0) and declare the specific NuGet packages required for each component, such as Azure Storage, Entity Framework Core, Serilog, and various Microsoft.AspNetCore and Microsoft.Extensions libraries.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 30 → 33 (+3.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 46 → 46 (+0.2)
  • Architecture 94 → 94 (+0.0)
  • Maturity 39 → 39 (+0.0)
  • Readiness 16 → 22 (+5.5)
  • Security 52 → 54 (+2.3)
  • Accessibility 32 → 33 (+1.4)
  • Performance 100 → 100 (+0.0)

Resolved (11)

  • End-of-life runtime: .NET net5.0 (Src/Transversal/Transversal.csproj)
  • Helper methods for sending emails use inconsistent casing for the verb 'send'. Two methods use camelCase (sendVerificationEmail, sendPasswordResetEmail) while one uses PascalCase (sendAlreadyRegisteredEmail). In C#, private helper methods should follow a consistent casing convention (typically camelCase for private members or PascalCase if the project standard dictates, but not mixed).
  • Vulnerable: Azure.Storage.Blobs
  • Vulnerable: MailKit
  • Vulnerable: Microsoft.Rest.ClientRuntime
  • Vulnerable: Newtonsoft.Json
  • XML-doc coverage: BgServicex (Src/BgServicex/BgServicex/BgServicex.csproj)
  • XML-doc coverage: Domain (Src/Domain/Domain.csproj)
  • XML-doc coverage: EngineAPI (Src/EngineAPI/EngineAPI.csproj)
  • XML-doc coverage: Transversal (Src/Transversal/Transversal.csproj)
  • XML-doc coverage: WorkerService (Src/WorkerService/WorkerService/WorkerService.csproj)

New (14)

  • End-of-life runtime: .NET net5.0 (Src/BgServicex/BgServicex/BgServicex.csproj)
  • End-of-life runtime: .NET net5.0 (Src/Domain/Domain.csproj)
  • End-of-life runtime: .NET net5.0 (Src/EngineAPI/EngineAPI.csproj)
  • End-of-life runtime: .NET net5.0 (Src/Transversal/Transversal.csproj)
  • Upload returns an awaitable but lacks the Async suffix its 13 peers carry (Src/BgServicex/BgServicex/Servives/IUploadFileService.cs)
  • doc comments repeat the names (Src/BgServicex/BgServicex/Worker.cs)
  • redundant comment (Src/BgServicex/BgServicex/Utils/Authentication.cs)
  • redundant comment (Src/BgServicex/BgServicex/Utils/Authentication.cs)
  • redundant comment (Src/BgServicex/BgServicex/Utils/Authentication.cs)
  • redundant comment (Src/BgServicex/BgServicex/Utils/Authentication.cs)
  • redundant comment (Src/BgServicex/BgServicex/Worker.cs)
  • redundant comment (Src/BgServicex/BgServicex/Worker.cs)
  • redundant comment (Src/BgServicex/BgServicex/Worker.cs)
  • redundant comment (Src/BgServicex/BgServicex/Worker.cs)

API surface

  • Unchanged — 15 HTTP endpoints

Architecture

  • Unchanged — 4 containers · 0 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

sgermosen/StreamingFromFiles was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 429f7a35f6157fba3dac8b9fbe692c02a91986ab — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.